summaryrefslogtreecommitdiffstats
path: root/libavcodec/celp_filters.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:38:57 +0100
commit3047b0a4a3e749e62e413f8fc96ae2e9fe228477 (patch)
treef35438c8411bb968484aff33246b10b969557d42 /libavcodec/celp_filters.c
parent27888d13b8d370b365593312d6755d268a4428f6 (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/celp_filters.c')
0 files changed, 0 insertions, 0 deletions