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:38:57 +0100 |
commit | 3047b0a4a3e749e62e413f8fc96ae2e9fe228477 (patch) | |
tree | f35438c8411bb968484aff33246b10b969557d42 /doc/Makefile | |
parent | 27888d13b8d370b365593312d6755d268a4428f6 (diff) | |
download | ffmpeg-3047b0a4a3e749e62e413f8fc96ae2e9fe228477.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/Makefile')
0 files changed, 0 insertions, 0 deletions