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-27 00:46:34 +0100 |
commit | 71fa32bbb7478a865ba9e955393766f733fdda50 (patch) | |
tree | b35e28ce92f0682b7c84c9c8d4659208b766b8b8 /libavfilter/vsrc_life.c | |
parent | 8a56b31e7cd1af1e3de59bfe3e79d5d7171404d4 (diff) | |
download | ffmpeg-71fa32bbb7478a865ba9e955393766f733fdda50.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 'libavfilter/vsrc_life.c')
0 files changed, 0 insertions, 0 deletions