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-10 22:02:49 +0100 |
commit | 89eb398c7fc4cb9a15e55bdf2ab6435b5332e377 (patch) | |
tree | 7cd5eaef6d3aaf62337f675bb5679c71043dc596 /libavcodec/dvbtxt.h | |
parent | c82b8ef0e4f226423ddd644bfe37e6a15d070924 (diff) | |
download | ffmpeg-89eb398c7fc4cb9a15e55bdf2ab6435b5332e377.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>
Diffstat (limited to 'libavcodec/dvbtxt.h')
0 files changed, 0 insertions, 0 deletions