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
..
2015-08-25 12:44:20 +00:00
2015-09-05 10:53:55 +02:00
2016-08-15 18:54:34 +02:00
2016-01-27 23:45:45 +01:00
2016-01-15 12:30:40 +01:00
2015-09-06 11:56:54 +02:00
2016-01-28 15:53:54 +01:00
2016-10-05 03:06:45 +02:00
2015-08-18 10:24:01 -04:00
2016-01-28 15:53:54 +01:00
2015-08-01 00:58:31 +02:00
2016-01-15 12:30:40 +01:00
2015-08-13 01:20:16 +02:00
2016-01-27 23:45:44 +01:00
2016-04-27 04:40:11 +02:00
2016-01-28 15:53:54 +01:00
2016-04-27 04:40:11 +02:00
2015-08-25 12:07:38 +02:00
2015-12-06 02:51:27 +01:00
2015-09-02 00:59:10 +02:00
2016-04-28 23:26:45 +02:00
2015-09-03 12:42:40 +02:00
2016-08-15 20:25:13 +02:00
2015-08-20 12:22:50 +02:00
2015-08-10 04:45:27 +02:00
2015-08-24 13:04:38 +02:00
2016-01-15 15:49:35 +01:00
2015-12-13 02:59:32 +01:00
2015-09-03 20:11:29 +02:00
2015-10-08 13:15:42 +02:00
2016-11-27 00:46:34 +01:00
2016-01-28 15:53:54 +01:00
2016-01-28 15:53:54 +01:00
2015-08-23 04:16:02 +02:00
2016-01-27 23:28:49 +01:00
2016-01-28 15:53:53 +01:00
2016-01-15 12:30:40 +01:00
2015-11-07 14:10:41 +01:00
2015-09-03 11:28:29 +02:00
2016-01-28 15:53:54 +01:00
2016-07-26 12:08:58 -07:00
2015-08-21 04:24:58 +00:00
2016-11-27 00:46:34 +01:00
2015-12-09 18:27:54 +01:00
2015-12-20 02:42:13 +01:00
2016-08-15 20:25:13 +02:00
2016-09-18 00:18:11 +02:00
2015-08-18 08:50:22 +02:00
2015-10-20 12:35:43 +02:00
2016-11-26 15:12:27 +01:00
2015-08-27 18:07:43 +02:00
2016-11-27 00:46:34 +01:00
2015-12-06 02:51:27 +01:00
2015-08-30 23:30:09 +02:00
2015-09-05 00:09:13 +02:00
2016-11-27 00:46:33 +01:00
2015-12-13 17:27:04 +01:00
2015-09-01 22:46:23 +02:00
2015-08-01 00:58:31 +02:00
2015-08-01 00:58:31 +02:00
2015-12-20 13:39:41 +01:00
2015-12-20 13:39:45 +01:00
2016-08-15 18:54:34 +02:00
2016-08-15 20:25:13 +02:00
2015-08-27 04:28:21 +02:00
2016-08-15 18:54:34 +02:00
2016-07-25 09:59:54 -03:00
2016-08-15 18:54:34 +02:00
2015-07-30 00:06:15 +02:00
2015-09-05 00:09:06 +02:00
2015-12-06 02:51:27 +01:00
2015-08-14 04:40:00 +02:00
2015-07-29 22:09:16 +03:00
2015-11-26 16:06:39 +01:00
2015-09-01 13:35:37 +02:00
2015-07-30 09:26:49 +03:00
2016-08-15 20:25:13 +02:00
2016-04-27 04:40:11 +02:00
2015-08-23 23:35:38 +02:00
2015-12-02 14:56:53 +01:00
2016-04-27 04:40:11 +02:00
2015-10-27 13:40:06 +01:00
2015-08-28 00:09:56 +02:00
2015-12-06 02:51:27 +01:00
2015-10-09 10:56:31 +02:00
2016-08-19 11:03:50 +02:00
2015-08-01 00:58:31 +02:00
2015-08-18 11:48:49 -04:00
2015-12-13 10:14:24 +01:00
2015-08-13 02:24:37 +02:00
2015-08-01 00:58:31 +02:00
2016-11-27 00:46:30 +01:00
2015-09-01 09:19:49 +02:00
2015-08-13 12:38:31 +02:00
2015-08-20 21:03:08 +02:00
2015-10-08 13:15:42 +02:00
2015-11-06 02:55:48 +01:00