1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavformat
Andreas Cadhalpun 71fa32bbb7 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>
2016-11-27 00:46:34 +01:00
..
2016-01-15 12:30:40 +01:00
2016-01-28 15:53:54 +01:00
2015-08-18 10:24:01 -04:00
2016-01-27 23:45:44 +01:00
2016-04-28 23:26:45 +02:00
2015-09-03 12:42:40 +02:00
2015-08-20 12:22:50 +02:00
2016-01-15 15:49:35 +01:00
2016-01-28 15:53:54 +01:00
2016-01-15 12:30:40 +01:00
2015-08-21 04:24:58 +00:00
2016-08-15 20:25:13 +02:00
2016-11-27 00:46:34 +01:00
2016-11-27 00:46:33 +01:00
2015-09-01 22:46:23 +02:00
2015-12-20 13:39:45 +01:00
2015-12-06 02:51:27 +01:00
2015-09-01 13:35:37 +02:00
2015-12-13 10:14:24 +01:00