History

avformat/wavdec: Avoid zeroing written to array

Fixes: OOM Fixes: 26934/clusterfuzz-testcase-minimized-ffmpeg_dem_W64_fuzzer-5996784213819392

Michael Niedermayer committed 6 years ago

Commit f26b5ac1 parent 32d05611 file · +1 −1Browse files

Unified · Split

libavformat/wavdec.c+1−1
@@ -917,7 +917,7 @@ static int w64_read_header(AVFormatContext *s) · 916 unmodified lines
917917 if (chunk_size == UINT32_MAX || (filesize >= 0 && chunk_size > filesize))
918918 return AVERROR_INVALIDDATA;
919919
920− value = av_mallocz(chunk_size + 1);
920+ value = av_malloc(chunk_size + 1);
921921 if (!value)
922922 return AVERROR(ENOMEM);
923923

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t