1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00
FFmpeg/libavcodec
Michael Niedermayer 6a287b739f Detect and prevent reading over the end of counts_*. We pass the error
through a context variable as this is simpler and i think also faster, but
the return value of functions could be used instead of course.
The code also ensures as a side effect that the AC decoder state does not
become invalid.
This fixes all known crashes. And outputs nothing in case of an error instead
of random noise.

Originally committed as revision 12316 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-03-04 21:58:34 +00:00
..
2008-03-04 00:07:41 +00:00
2008-02-01 13:49:15 +00:00
2008-02-01 14:57:49 +00:00
2008-02-01 15:11:24 +00:00
2008-02-01 03:39:15 +00:00
2008-01-21 00:29:22 +00:00
2007-12-09 03:21:33 +00:00
2007-12-09 03:21:33 +00:00
2008-02-01 14:36:33 +00:00
2007-11-01 18:38:15 +00:00
2008-02-01 14:37:36 +00:00
2007-11-01 18:38:15 +00:00
2008-02-01 03:39:15 +00:00
2008-02-13 09:26:10 +00:00
2008-02-01 03:48:32 +00:00
2008-02-01 03:54:08 +00:00
2008-02-01 03:48:55 +00:00
2008-02-01 03:47:32 +00:00
2008-02-04 00:49:14 +00:00
2008-02-04 00:49:14 +00:00
2008-02-01 15:01:05 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:51:51 +00:00
2008-02-01 03:59:06 +00:00
2008-02-01 04:02:28 +00:00
2008-02-01 03:59:06 +00:00
2008-02-01 04:07:48 +00:00
2008-02-01 04:04:44 +00:00
2008-02-13 09:26:10 +00:00
2007-12-02 22:04:21 +00:00
2008-02-26 14:59:11 +00:00
2008-02-01 04:11:06 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-03-04 18:35:12 +00:00
2008-02-01 15:08:55 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 15:08:55 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 15:10:01 +00:00
Fix
2008-02-15 12:04:35 +00:00
Fix
2008-02-15 12:04:35 +00:00
2008-02-26 23:51:59 +00:00
2008-02-26 23:49:41 +00:00
2008-02-01 04:14:04 +00:00
2008-02-19 22:09:08 +00:00
2008-02-09 14:45:36 +00:00
2008-02-01 04:16:26 +00:00
2008-02-01 04:17:56 +00:00
2008-02-19 21:42:10 +00:00
2008-02-19 22:09:08 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 13:32:41 +00:00
2008-02-01 23:48:39 +00:00
2008-02-01 15:13:38 +00:00
2008-02-03 07:05:11 +00:00
2008-02-01 04:14:04 +00:00
2008-02-01 03:26:31 +00:00
2007-12-01 22:21:04 +00:00
2008-03-03 23:10:13 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 13:42:08 +00:00
2008-02-01 03:26:31 +00:00
2007-11-10 01:02:36 +00:00
2008-02-01 03:26:31 +00:00
2008-02-19 21:46:40 +00:00
2008-02-13 14:24:34 +00:00
2008-01-25 21:14:17 +00:00
2008-02-09 18:02:28 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 02:36:09 +00:00
2008-03-04 18:38:32 +00:00
2008-02-01 03:34:43 +00:00
2008-02-01 15:30:29 +00:00
2008-02-01 03:40:46 +00:00
2008-02-01 03:40:46 +00:00
2007-12-03 11:03:16 +00:00
2008-02-01 03:26:31 +00:00
2007-12-01 22:21:04 +00:00
2008-02-13 09:26:10 +00:00
2008-02-13 09:26:10 +00:00
2007-11-07 05:35:46 +00:00
2007-11-07 05:35:46 +00:00
2008-02-25 22:43:42 +00:00
2008-02-20 20:24:38 +00:00
2008-02-13 09:26:10 +00:00
2007-11-07 23:41:39 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 13:55:15 +00:00
Fix
2008-02-15 11:38:38 +00:00
2007-12-12 18:40:11 +00:00
2007-10-17 09:21:52 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 13:58:41 +00:00
2008-02-26 10:21:33 +00:00
2008-02-26 10:21:33 +00:00
2008-02-26 10:21:33 +00:00
2008-02-26 07:35:56 +00:00
2008-02-01 15:34:00 +00:00
2008-02-01 14:03:47 +00:00
2008-02-13 09:26:10 +00:00
2008-02-01 15:40:03 +00:00
2008-02-01 15:41:16 +00:00
2008-02-02 22:09:07 +00:00
2008-02-01 15:43:38 +00:00
2008-02-01 15:43:53 +00:00
2008-02-19 21:37:53 +00:00
2008-02-28 16:11:56 +00:00
2007-12-15 10:03:49 +00:00
2008-02-02 21:55:56 +00:00
2008-02-02 21:55:56 +00:00
2008-02-01 14:06:54 +00:00
2008-03-03 23:14:25 +00:00
2008-02-01 14:08:35 +00:00
2007-12-07 05:56:07 +00:00
2007-11-27 15:38:54 +00:00
2008-01-18 07:04:58 +00:00
2007-12-08 09:15:44 +00:00
2007-12-06 17:12:02 +00:00
2007-12-06 17:12:02 +00:00
2008-02-01 23:49:56 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 14:07:02 +00:00
2007-12-09 05:54:59 +00:00
2007-12-09 05:54:59 +00:00
2008-02-01 14:10:56 +00:00
2008-03-04 00:07:41 +00:00
2008-02-01 14:15:10 +00:00
2008-02-01 03:39:15 +00:00
2008-02-01 14:16:08 +00:00
2008-02-01 15:53:25 +00:00
2008-02-01 02:35:11 +00:00
2008-02-01 15:54:04 +00:00
2008-02-01 15:56:51 +00:00
2008-02-01 14:28:22 +00:00
2008-02-02 21:38:25 +00:00
2008-02-01 15:57:38 +00:00
2008-02-01 14:30:35 +00:00
2008-02-01 15:57:54 +00:00
2008-02-01 15:58:29 +00:00
2008-02-01 15:58:47 +00:00
2008-02-01 15:59:41 +00:00
2008-02-01 03:26:31 +00:00
2008-02-26 14:59:11 +00:00
2008-02-01 03:26:31 +00:00
2008-02-13 09:26:10 +00:00
2008-01-19 11:04:02 +00:00
2008-02-01 16:03:03 +00:00
2008-02-01 16:06:40 +00:00
2008-02-01 16:08:39 +00:00
2008-02-01 16:07:11 +00:00
2008-02-24 18:56:52 +00:00
2008-02-01 16:16:40 +00:00
2008-02-01 16:16:40 +00:00
2008-02-01 16:16:40 +00:00
2008-02-01 16:16:40 +00:00
2008-02-19 22:09:08 +00:00
2008-02-01 16:12:00 +00:00
2008-02-01 16:14:32 +00:00
2008-02-01 16:20:59 +00:00
2008-02-01 23:24:35 +00:00
2008-02-01 16:21:22 +00:00
2008-02-01 03:26:31 +00:00
2008-02-01 16:22:26 +00:00