aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rnd_avg.h
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-17 23:16:48 +0100
commit1615d83dcf6ed0401be2f8afbdd8af8d2fc56815 (patch)
treef342fbb336673314d3f76975db70c44e4aeb41c1 /libavcodec/rnd_avg.h
parent41359d381a2b5f5057502b2839b5eb42af69804f (diff)
downloadffmpeg-1615d83dcf6ed0401be2f8afbdd8af8d2fc56815.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 'libavcodec/rnd_avg.h')
0 files changed, 0 insertions, 0 deletions