Fixes: OOM Fixes: 26934/clusterfuzz-testcase-minimized-ffmpeg_dem_W64_fuzzer-5996784213819392
Unified · Split
| @@ -917,7 +917,7 @@ static int w64_read_header(AVFormatContext *s) · 916 unmodified lines | ||
| 917 | 917 | if (chunk_size == UINT32_MAX || (filesize >= 0 && chunk_size > filesize)) |
| 918 | 918 | return AVERROR_INVALIDDATA; |
| 919 | 919 | |
| 920 | − value = av_mallocz(chunk_size + 1); | |
| 920 | + value = av_malloc(chunk_size + 1); | |
| 921 | 921 | if (!value) |
| 922 | 922 | return AVERROR(ENOMEM); |
| 923 | 923 | |