diff options
author | Andreas Cadhalpun <[email protected]> | 2016-11-08 23:29:28 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2016-11-27 00:46:34 +0100 |
commit | 71fa32bbb7478a865ba9e955393766f733fdda50 (patch) | |
tree | b35e28ce92f0682b7c84c9c8d4659208b766b8b8 /libavutil/float_dsp.c | |
parent | 8a56b31e7cd1af1e3de59bfe3e79d5d7171404d4 (diff) |
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 <[email protected]>
Signed-off-by: Andreas Cadhalpun <[email protected]>
(cherry picked from commit 89eb398c7fc4cb9a15e55bdf2ab6435b5332e377)
Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavutil/float_dsp.c')
0 files changed, 0 insertions, 0 deletions