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