diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-11-08 23:29:28 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-11-17 23:16:48 +0100 |
commit | 1615d83dcf6ed0401be2f8afbdd8af8d2fc56815 (patch) | |
tree | f342fbb336673314d3f76975db70c44e4aeb41c1 /libavcodec/copy_block.h | |
parent | 41359d381a2b5f5057502b2839b5eb42af69804f (diff) | |
download | ffmpeg-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/copy_block.h')
0 files changed, 0 insertions, 0 deletions