Michael Niedermayer
014dee89d0
avcodec: fix aac/ac3 parser bitstream buffer size
...
Buffers containing copies of the AAC and AC3 header bits were not padded
before parsing, violating init_get_bits() buffer padding requirement,
leading to potential buffer read overflows.
This change adds FF_INPUT_BUFFER_PADDING_SIZE bytes to the bit buffer
for parsing the header in each of aac_parser.c and ac3_parser.c.
Based on patch by: Matt Wolenetz <wolenetz@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit fccd85b9f30525f88692f53134eba41f1f2d90db)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-09-20 18:40:33 +02:00
..
2014-02-20 23:13:13 +01:00
2014-07-30 20:18:14 +02:00
2014-06-02 22:34:22 +02:00
2014-09-20 18:40:33 +02:00
2014-03-15 02:42:11 +01:00
2014-02-20 15:27:03 +01:00
2014-02-03 15:06:41 +01:00
2014-09-20 18:40:33 +02:00
2014-06-02 22:59:49 +02:00
2014-03-02 11:42:38 -05:00
2014-09-20 18:40:33 +02:00
2014-03-01 01:51:01 +01:00
2014-03-01 01:45:49 +01:00
2014-03-01 01:51:01 +01:00
2014-02-07 19:33:20 +00:00
2014-02-07 19:33:20 +00:00
2014-03-17 15:46:12 +01:00
2014-06-26 12:59:00 +02:00
2014-06-23 15:56:15 +02:00
2014-03-07 08:32:55 -05:00
2014-06-23 15:56:15 +02:00
2014-02-17 20:50:33 +01:00
2014-02-09 18:50:53 +01:00
2014-01-31 14:53:06 +01:00
2014-03-02 11:42:37 -05:00
2014-03-02 11:42:37 -05:00
2014-07-14 22:39:25 +02:00
2014-03-02 11:42:37 -05:00
2014-01-26 01:54:55 +01:00
2014-06-23 15:56:15 +02:00
2014-06-23 15:56:15 +02:00
2014-08-11 18:49:37 +02:00
2014-02-08 19:02:46 +01:00
2014-02-28 18:14:12 +01:00
2014-05-31 12:20:51 +02:00
2014-02-28 21:41:19 +01:00
2014-02-28 21:41:19 +01:00
2014-04-10 04:53:00 +02:00
2014-06-02 22:59:49 +02:00
2014-02-10 03:42:06 +01:00
2014-02-10 03:42:06 +01:00
2014-01-26 01:54:55 +01:00
2014-02-09 17:14:57 +01:00
2014-08-05 04:14:02 +02:00
2014-02-20 15:27:03 +01:00
2014-02-16 21:13:02 +01:00
2014-02-21 00:21:22 +01:00
2014-01-27 14:24:29 +01:00
2014-02-16 02:18:58 +01:00
2014-02-05 01:42:06 +01:00
2014-07-30 19:59:38 +02:00
2014-02-07 19:32:16 +00:00
2014-02-07 19:32:16 +00:00
2014-02-18 18:11:23 +01:00
2014-07-30 20:35:23 +02:00
2014-08-23 02:16:10 +02:00
2014-02-15 01:50:47 +01:00
2014-05-05 00:09:17 +02:00
2014-02-15 20:48:25 +01:00
2014-02-13 21:00:32 +01:00
2014-02-06 02:51:19 +01:00
2014-02-15 15:16:51 +01:00
2014-07-23 10:42:11 +02:00
2014-05-05 00:09:17 +02:00
2014-06-02 22:59:49 +02:00
2014-04-10 04:46:00 +02:00
2014-01-26 01:54:55 +01:00
2014-03-02 11:42:36 -05:00
2014-08-05 04:14:02 +02:00
2014-08-05 04:14:02 +02:00
2014-02-22 02:55:55 +01:00
2014-06-09 23:50:12 +02:00
2014-08-01 13:15:07 +01:00
2014-09-20 18:40:33 +02:00
2014-08-05 04:14:02 +02:00
2014-03-02 11:42:37 -05:00
2014-02-14 23:20:57 +01:00
2014-02-23 22:11:51 +01:00
2014-02-10 03:54:54 +01:00
2014-08-05 04:13:38 +02:00
2014-08-05 04:13:38 +02:00
2014-08-05 04:13:38 +02:00
2014-08-05 04:13:38 +02:00
2014-02-23 22:18:09 +01:00
2014-02-03 03:11:48 +01:00
2014-02-19 20:32:02 +01:00
2014-01-27 01:45:57 +01:00
2014-08-11 18:02:36 +02:00
2014-02-15 15:06:29 +01:00
2014-08-11 19:07:11 +02:00
2014-03-17 15:47:49 +01:00
2014-03-02 11:42:38 -05:00
2014-01-26 01:54:55 +01:00
2014-06-02 22:59:50 +02:00
2014-07-14 22:38:22 +02:00
2014-08-06 12:44:35 +01:00
2014-02-05 01:18:48 +01:00
2014-02-05 02:47:46 +01:00
2014-02-06 02:33:33 +01:00
2014-07-14 22:26:06 +02:00
2014-01-27 14:38:59 +01:00
2014-06-02 22:59:49 +02:00
2014-02-24 10:47:47 +01:00
2014-08-11 18:51:29 +02:00
2014-04-11 16:45:33 -03:00
2014-02-22 11:17:56 +01:00
2014-02-15 16:51:33 +01:00
2014-03-23 20:31:05 +01:00
2014-01-31 18:34:08 +01:00
2014-06-09 23:51:24 +02:00
2014-02-27 20:13:48 +01:00
2014-05-05 00:09:17 +02:00
2014-05-05 00:09:17 +02:00
2014-02-09 02:37:17 +01:00
2014-06-02 22:59:50 +02:00
2014-08-05 19:21:40 +00:00
2014-02-15 13:07:54 +01:00
2014-02-20 15:43:03 +01:00
2014-02-20 05:49:52 +01:00
2014-08-05 04:14:02 +02:00
2014-02-12 00:11:16 +01:00
2014-07-14 22:25:23 +02:00
2014-02-11 23:57:47 +01:00
2014-03-23 20:31:05 +01:00
2014-09-20 18:40:33 +02:00
2014-03-23 20:31:05 +01:00
2014-04-10 04:53:00 +02:00
2014-06-02 22:59:50 +02:00
2014-06-02 22:59:50 +02:00
2014-02-28 13:20:22 +01:00
2014-01-31 18:34:14 +01:00
2014-03-02 11:42:38 -05:00
2014-05-10 12:03:46 -04:00
2014-08-05 03:54:50 +02:00
2014-02-23 20:40:52 +01:00
2014-02-28 18:02:00 +01:00
2014-02-28 18:02:00 +01:00
2014-09-20 17:46:41 +02:00
2014-04-10 04:53:00 +02:00
2014-02-21 16:57:26 -03:00
2014-02-21 16:57:26 -03:00
2014-02-10 21:45:55 +01:00
2014-02-10 21:45:55 +01:00
2014-02-10 21:52:45 +01:00
2014-09-20 18:40:33 +02:00
2014-03-23 20:31:05 +01:00
2014-03-23 20:31:05 +01:00
2014-02-22 18:29:17 +01:00
2014-03-23 20:31:05 +01:00
2014-02-20 15:27:03 +01:00
2014-02-01 22:32:28 +01:00
2014-02-01 22:30:22 +01:00
2014-02-03 02:04:38 +01:00
2014-02-10 21:28:38 +01:00
2014-03-11 11:03:17 +01:00
2014-02-04 21:59:57 +01:00
2014-08-11 19:07:11 +02:00
2014-09-20 18:40:32 +02:00
2014-03-23 20:31:05 +01:00
2014-08-11 18:50:29 +02:00
2014-06-02 22:59:50 +02:00
2014-03-02 11:42:37 -05:00
2014-02-28 20:34:40 +01:00
2014-02-28 20:34:40 +01:00
2014-01-31 19:54:27 +01:00
2014-02-23 13:03:18 +01:00
2014-02-23 13:03:18 +01:00
2014-02-05 02:25:34 +01:00
2014-02-13 01:34:33 +01:00
2014-02-17 13:51:19 +01:00
2014-02-17 13:51:19 +01:00
2014-09-20 17:46:41 +02:00
2014-06-09 23:49:18 +02:00
2014-03-01 02:57:15 +01:00
2014-02-21 00:21:22 +01:00
2014-02-01 19:07:01 +01:00
2014-07-23 10:42:35 +02:00
2014-01-27 20:36:42 +01:00
2014-01-27 20:36:42 +01:00
2014-02-16 02:18:58 +01:00
2014-03-27 11:20:56 +01:00
2014-05-01 18:22:19 +02:00
2014-02-28 02:08:11 +01:00
2014-02-15 02:15:35 +01:00
2014-02-04 16:14:30 +01:00
2014-02-25 12:49:35 +01:00
2014-02-15 02:15:35 +01:00
2014-02-08 12:53:59 +01:00
2014-05-08 19:56:00 -04:00
2014-02-09 18:07:15 +01:00
2014-02-28 02:08:11 +01:00
2014-09-20 18:40:33 +02:00
2014-09-20 18:40:33 +02:00
2014-09-20 18:40:33 +02:00
2014-04-10 04:53:00 +02:00
2014-08-05 14:59:29 +00:00