diff options
author | Andreas Cadhalpun <[email protected]> | 2016-11-08 23:29:28 +0100 |
---|---|---|
committer | Andreas Cadhalpun <[email protected]> | 2016-11-17 23:16:48 +0100 |
commit | 1615d83dcf6ed0401be2f8afbdd8af8d2fc56815 (patch) | |
tree | f342fbb336673314d3f76975db70c44e4aeb41c1 /libavutil/color_utils.h | |
parent | 41359d381a2b5f5057502b2839b5eb42af69804f (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/color_utils.h')
0 files changed, 0 insertions, 0 deletions