aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
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-27 00:28:05 +0100
commitc35a140e71710d815bab9581e928b42177feaf7e (patch)
treedbda613b7535b67dcef0a850ea7532f307c8d878 /doc/examples
parent5c2e26275cb130293691ed0b335db0a67e8abbcf (diff)
downloadffmpeg-c35a140e71710d815bab9581e928b42177feaf7e.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> (cherry picked from commit 89eb398c7fc4cb9a15e55bdf2ab6435b5332e377) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'doc/examples')
0 files changed, 0 insertions, 0 deletions