mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
tools/probetest: Check av_realloc() return code
Fixess CID1135761 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f6173fed60
commit
37437d97a8
@ -110,6 +110,11 @@ int main(int argc, char **argv)
|
||||
pd.buf = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE);
|
||||
pd.filename = "";
|
||||
|
||||
if (!pd.buf) {
|
||||
fprintf(stderr, "out of memory\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
memset(pd.buf, 0, size + AVPROBE_PADDING_SIZE);
|
||||
|
||||
fprintf(stderr, "testing size=%d\n", size);
|
||||
|
Loading…
Reference in New Issue
Block a user