Commit c8f81e7
committed
Fix unittest failures on 2 PNG files with errors.
* Freeing already freed memory due to calling inflateIdat even when
lodepng_decode_chunks has set error state.
* Crash due to zlib decompressor zlib decompressor checking incoming
size and, if > 2, accessing the data pointer even if its null.
Fixed by initializing the size to 0 too.1 parent 76f3fc1 commit c8f81e7
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5304 | 5304 | | |
5305 | 5305 | | |
5306 | 5306 | | |
5307 | | - | |
| 5307 | + | |
5308 | 5308 | | |
5309 | 5309 | | |
5310 | 5310 | | |
| |||
5317 | 5317 | | |
5318 | 5318 | | |
5319 | 5319 | | |
| 5320 | + | |
5320 | 5321 | | |
5321 | 5322 | | |
5322 | 5323 | | |
| |||
5593 | 5594 | | |
5594 | 5595 | | |
5595 | 5596 | | |
5596 | | - | |
| 5597 | + | |
| 5598 | + | |
| 5599 | + | |
5597 | 5600 | | |
5598 | 5601 | | |
5599 | 5602 | | |
| |||
0 commit comments