Andreas Cadhalpun
bbeae2c690
jvdec: avoid unsigned overflow in comparison
...
The return type of strlen is size_t, i.e. unsigned, so if pd->buf_size
is 3, the right side overflows leading to a wrong result of the
comparison and subsequently a heap buffer overflow.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit db374790c75fa4ef947abcb5019fcf21d0b2de85)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-19 03:51:39 +01:00
..
2014-12-18 00:10:35 +01:00
2015-02-14 21:07:40 +01:00
2015-02-26 12:25:29 +01:00
2015-01-16 14:20:37 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-19 21:44:58 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-15 21:43:28 +01:00
2015-02-20 20:39:04 +01:00
2015-03-03 21:16:31 +01:00
2015-03-13 13:04:31 +01:00
2014-12-15 15:43:42 +01:00
2015-02-05 03:27:55 +01:00
2015-03-05 00:09:26 +01:00
2015-10-09 21:47:07 +02:00
2015-03-04 00:08:53 +01:00
2015-02-28 23:02:42 +01:00
2015-03-03 17:49:15 +01:00
2015-07-20 04:43:40 +02:00
2015-01-03 13:24:57 +01:00
2015-05-14 19:07:01 +02:00
2015-02-26 23:19:39 +01:00
2015-02-11 02:47:54 +01:00
2015-02-14 21:07:40 +01:00
2015-03-06 22:26:53 +01:00
2015-05-14 19:14:32 +02:00
2014-12-31 22:33:51 +01:00
2015-01-29 14:25:04 +01:00
2015-02-14 21:07:40 +01:00
2015-05-14 20:57:24 -03:00
2015-02-26 02:06:10 +01:00
2015-03-04 19:28:53 +01:00
2015-11-19 03:51:38 +01:00
2015-02-11 02:47:54 +01:00
2015-01-07 17:21:31 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-07-20 04:43:39 +02:00
2015-02-27 13:38:43 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-05-15 10:04:51 +02:00
2014-12-15 15:49:00 +01:00
2015-02-14 21:07:40 +01:00
2015-03-04 20:47:14 +01:00
2015-01-16 02:24:08 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-20 20:14:56 +01:00
2015-01-09 15:55:07 +01:00
2015-11-19 03:51:37 +01:00
2015-03-28 11:59:24 +01:00
2015-02-23 16:53:36 +01:00
2015-01-23 22:27:48 +01:00
2015-03-28 11:59:35 +01:00
2015-11-19 03:51:38 +01:00
2015-01-05 20:52:51 +01:00
2015-05-14 19:13:49 +02:00
2015-02-20 20:13:06 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-10-09 21:44:11 +02:00
2015-02-14 21:07:40 +01:00
2015-05-14 19:51:55 -03:00
2015-02-11 11:47:01 +00:00
2015-01-02 11:38:21 +01:00
2015-02-14 21:07:40 +01:00
2015-11-19 03:51:39 +01:00
2015-02-14 21:07:40 +01:00
2015-01-23 17:45:35 +01:00
2015-02-14 21:07:40 +01:00
2015-03-05 10:05:44 +02:00
2015-05-14 19:04:55 +02:00
2015-05-14 19:04:55 +02:00
2015-10-09 21:48:25 +02:00
2015-05-15 10:04:52 +02:00
2015-02-07 16:23:36 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-07-20 04:43:40 +02:00
2015-11-19 03:51:38 +01:00
2015-03-05 12:26:37 +01:00
2015-03-05 12:26:37 +01:00
2015-02-25 00:48:50 +01:00
2015-02-26 20:11:19 +01:00
2015-02-16 23:14:27 +01:00
2015-02-14 21:07:40 +01:00
2015-01-31 08:57:06 +00:00
2015-03-01 16:47:36 +01:00
2015-02-14 21:07:40 +01:00
2015-02-25 15:08:33 +01:00
2015-02-11 02:47:54 +01:00
2015-11-19 03:51:37 +01:00
2015-02-20 20:41:35 +01:00
2015-03-04 23:48:41 +01:00
2015-03-13 13:04:31 +01:00
2015-07-20 04:43:39 +02:00
2015-05-15 10:04:50 +02:00
2015-02-03 02:21:55 +01:00
2015-02-14 21:07:40 +01:00
2015-01-30 09:33:49 +00:00
2015-07-20 04:43:39 +02:00
2015-07-23 01:35:09 +02:00
2015-02-25 00:48:50 +01:00
2015-02-14 21:07:40 +01:00
2015-02-22 19:21:53 +01:00
2014-12-18 23:27:07 +01:00
2015-10-09 21:47:52 +02:00
2015-07-20 04:43:41 +02:00
2014-12-19 04:36:45 +01:00
2015-02-20 21:01:54 +01:00
2015-02-28 23:02:42 +01:00
2014-12-22 12:03:34 +01:00
2014-12-20 00:49:47 +01:00
2015-02-14 21:07:40 +01:00
2015-02-11 02:47:54 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-11-19 03:51:37 +01:00
2015-01-05 01:45:49 +01:00
2015-01-22 23:13:08 +01:00
2015-03-05 01:40:03 +01:00
2015-01-27 18:16:42 +01:00
2015-03-13 09:14:26 +01:00
2015-02-27 19:25:27 +01:00
2014-12-22 12:03:35 +01:00
2015-02-27 19:25:27 +01:00
2015-03-28 11:59:05 +01:00
2015-03-05 20:24:58 +01:00
2015-02-06 16:07:16 +00:00
2014-12-20 00:17:43 +01:00
2015-01-15 14:45:29 +01:00
2014-12-22 12:03:36 +01:00
2015-02-25 00:58:39 +01:00
2015-02-25 00:03:52 +01:00
2015-03-05 01:12:19 +01:00
2015-02-25 00:58:39 +01:00
2015-03-05 10:05:44 +02:00
2015-02-25 00:58:39 +01:00
2015-02-25 00:58:39 +01:00
2015-02-24 22:34:08 +01:00
2015-02-25 00:58:39 +01:00
2015-02-24 23:44:25 +01:00
2015-02-24 23:44:25 +01:00
2015-02-25 00:58:39 +01:00
2015-02-25 00:58:39 +01:00
2015-03-04 11:31:55 +01:00
2015-02-25 00:58:39 +01:00
2015-02-24 22:34:08 +01:00
2015-02-25 00:58:39 +01:00
2015-02-24 22:55:20 +01:00
2015-02-24 22:55:20 +01:00
2015-03-05 01:20:25 +01:00
2015-02-25 00:58:39 +01:00
2015-02-25 00:58:39 +01:00
2015-03-05 10:12:53 +01:00
2015-05-15 10:04:51 +02:00
2015-03-05 10:05:44 +02:00
2015-02-25 00:58:39 +01:00
2015-03-01 01:31:49 +01:00
2015-03-01 01:31:49 +01:00
2015-02-25 00:48:50 +01:00
2014-12-19 13:25:51 +01:00
2015-02-24 23:30:51 +01:00
2015-07-20 04:43:38 +02:00
2015-05-14 19:04:05 +02:00
2015-03-01 01:31:49 +01:00
2015-07-20 04:43:39 +02:00
2015-02-24 23:30:51 +01:00
2014-12-24 13:14:07 +01:00
2015-07-20 04:43:38 +02:00
2015-02-21 23:37:24 +02:00
2015-02-23 21:43:18 +01:00
2015-01-09 13:39:48 +01:00
2015-01-18 00:36:56 +01:00
2014-12-19 02:34:17 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-04 13:10:53 +00:00
2015-02-01 20:00:10 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-03-04 19:28:53 +01:00
2015-10-09 21:43:37 +02:00
2014-12-18 19:59:03 +01:00
2015-05-15 10:04:51 +02:00
2015-05-15 10:04:51 +02:00
2015-07-08 12:42:36 +02:00
2015-02-28 23:20:39 +01:00
2015-02-17 00:05:51 +01:00
2015-01-09 13:40:09 +01:00
2015-02-06 09:42:53 +00:00
2015-02-28 23:32:33 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-02-14 21:07:40 +01:00
2015-05-15 10:04:51 +02:00
2015-05-15 10:04:50 +02:00
2015-03-05 10:12:53 +01:00
2015-01-11 00:35:01 +01:00
2015-01-11 00:35:01 +01:00
2015-05-15 10:04:51 +02:00
2015-02-20 21:00:57 +01:00
2015-07-20 04:43:39 +02:00
2015-11-19 03:51:38 +01:00
2014-12-20 01:51:16 +01:00
2015-01-03 21:03:44 +01:00
2015-02-20 20:57:31 +01:00
2015-02-27 19:25:27 +01:00
2015-02-14 21:07:40 +01:00
2015-11-19 03:51:39 +01:00
2015-02-14 21:07:40 +01:00
2015-02-11 02:47:54 +01:00
2015-01-29 21:55:02 +01:00