aboutsummaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-08 23:29:28 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-10 22:02:49 +0100
commit89eb398c7fc4cb9a15e55bdf2ab6435b5332e377 (patch)
tree7cd5eaef6d3aaf62337f675bb5679c71043dc596 /compat
parentc82b8ef0e4f226423ddd644bfe37e6a15d070924 (diff)
downloadffmpeg-89eb398c7fc4cb9a15e55bdf2ab6435b5332e377.tar.gz
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 <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions