summaryrefslogtreecommitdiffstats
path: root/libavcodec/audio_frame_queue.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2016-11-08 23:29:28 +0100
committerAndreas Cadhalpun <[email protected]>2016-11-27 00:28:05 +0100
commitc35a140e71710d815bab9581e928b42177feaf7e (patch)
treedbda613b7535b67dcef0a850ea7532f307c8d878 /libavcodec/audio_frame_queue.c
parent5c2e26275cb130293691ed0b335db0a67e8abbcf (diff)
icodec: correctly check avio_read return value
It can read less than the requested amount, in which case buf contains uninitialized data, causing problems like segmentation faults later on. Also make sure that image->size is positive, so that it can't match a negative error code. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]> (cherry picked from commit 89eb398c7fc4cb9a15e55bdf2ab6435b5332e377) Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavcodec/audio_frame_queue.c')
0 files changed, 0 insertions, 0 deletions