| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b3cd8e commit d82d369
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1285,6 +1285,11 @@ bool ZlibContext::InitZlib() { | |||
| 1285 | 1285 | return false; | |
| 1286 | 1286 | } | |
| 1287 | 1287 | ||
| 1288 | + // If deflateInit2() fails with Z_VERSION_ERROR, msg remains uninitialized. | ||
| 1289 | + // Initialize it here to avoid reading the uninitialized pointer during error | ||
| 1290 | + // emission. | ||
| 1291 | + strm_.msg = nullptr; | ||
| 1292 | + | ||
| 1288 | 1293 | switch (mode_) { | |
| 1289 | 1294 | case DEFLATE: | |
| 1290 | 1295 | case GZIP: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments