Message142954
zlibmodule.c calling inflateInit2 and deflateInit2 will subsequently proceed to crash in the case where these functions return Z_VERSION_ERROR.
zlib implementation note:
When you compile against zlib, several functions (actually macros) like inflateInit2 and deflateInit2 compile the version of zlib you are compiling against into the actual call of the underlying real zlib API function.
Our situation:
We are compiling Python as a static library. When we link Python against our main project, it links against the version of zlib used by that main project. The version numbers are different, and rather than getting a nice exception we get a crash.
Expected result:
Proper error handling in zlibmodule.c, and not crash. Unhandled errors in zlibmodule.c are passed into the custom function zlib_error which looks at the msg field of the zst struct. In the case of Z_VERSION_ERROR the msg field is not initialised and a crash will result from use of the nonsense value in msg. |
|
Date |
User |
Action |
Args |
2011-08-25 05:21:49 | rmtew | set | recipients:
+ rmtew |
2011-08-25 05:21:49 | rmtew | set | messageid: <1314249709.71.0.494900056916.issue12839@psf.upfronthosting.co.za> |
2011-08-25 05:21:49 | rmtew | link | issue12839 messages |
2011-08-25 05:21:48 | rmtew | create | |
|