ffmpeg/libavcodec
John Brooks e540446f6c vc1dec: fix invalid memory access for small video dimensions
For small video dimensions, these calculations of the upper bound
for pixel access may have a negative result. Using an unsigned
comparison to bound a potentially negative value only works if
the greater operand is non-negative. Fixed by doing edge emulation
when the upper bound is probably negative, everywhere that this
pattern appears.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
(cherry picked from commit d209c27b09234cc40bbdbd680aa502b493edf595)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-05 02:23:08 +01:00
..
2011-12-03 20:46:42 +01:00
2011-06-02 20:06:00 +01:00
2012-01-03 17:55:05 +01:00
2011-11-27 21:19:07 +01:00
2012-01-03 18:17:42 +01:00
2011-04-17 23:43:54 +02:00
2011-12-16 15:21:19 +01:00
2011-11-25 13:19:54 +00:00
2012-01-03 22:25:03 +01:00
2012-01-03 19:49:55 +01:00
2012-01-03 19:49:55 +01:00
2012-01-03 19:56:06 +01:00
2012-01-03 22:50:03 +01:00
2011-05-05 03:30:24 +02:00
2011-04-11 23:39:12 +02:00
2012-01-03 22:50:03 +01:00
2011-11-06 09:37:34 +01:00
2011-11-12 20:47:33 +01:00
2011-11-12 19:36:23 +01:00
2011-09-16 05:53:14 +02:00
2012-01-03 18:25:03 +01:00
2011-11-12 20:01:05 +01:00
2011-05-13 04:40:40 +02:00
2011-05-13 04:40:40 +02:00
2011-11-12 20:01:50 +01:00
2012-01-03 19:49:55 +01:00
2011-04-26 22:06:13 +02:00
2011-11-12 20:05:35 +01:00
2011-10-30 21:50:17 +01:00
2011-10-30 21:50:17 +01:00
2011-11-14 18:14:20 +01:00
2011-11-05 00:02:31 +01:00
2012-01-03 20:58:22 +01:00
2011-11-05 00:02:38 +01:00
2011-11-12 20:07:31 +01:00
2011-12-10 11:58:03 +01:00
2012-01-03 19:49:56 +01:00
2011-04-27 03:51:04 +02:00
2011-11-09 23:10:07 +01:00
2011-12-05 12:41:46 +02:00
2011-10-10 02:58:18 +02:00
2011-12-03 03:00:49 +01:00
2011-09-24 21:11:01 +02:00
2011-12-03 03:00:44 +01:00
2011-09-25 21:16:55 +02:00
2011-11-19 04:07:26 +01:00
2011-11-05 15:37:02 +01:00
2011-11-05 15:37:02 +01:00
2012-01-03 22:27:02 +01:00
2011-08-30 05:41:44 +02:00
2011-10-21 01:00:41 -07:00
2011-05-11 05:47:02 +02:00
2011-10-21 01:00:41 -07:00
2012-01-03 20:58:22 +01:00
2012-01-03 20:01:50 +01:00
2012-01-03 22:38:07 +01:00
2012-01-03 22:38:07 +01:00
2012-01-03 22:38:07 +01:00
2012-01-03 22:38:07 +01:00
2011-05-24 01:31:53 +02:00
2011-11-12 21:00:12 +01:00
2011-07-21 18:10:58 +01:00
2011-09-08 05:34:17 +02:00
2011-11-13 15:43:09 +01:00
2012-01-03 22:25:47 +01:00
2012-01-03 19:09:20 +01:00
2011-11-24 15:39:41 +01:00
2011-05-11 05:47:02 +02:00
2012-01-03 22:50:03 +01:00
2012-01-03 19:05:12 +01:00
2011-05-24 01:31:53 +02:00
2011-05-24 01:31:53 +02:00
2011-05-24 01:31:53 +02:00
2011-05-24 01:31:53 +02:00
2012-01-03 17:51:52 +01:00
2011-05-21 13:48:10 +02:00
2011-12-05 03:22:06 +01:00
2011-11-11 18:40:19 +01:00
2012-01-03 22:36:22 +01:00
2012-01-03 20:58:22 +01:00
2011-12-13 21:47:01 +01:00
2011-11-12 20:15:21 +01:00
2011-12-13 21:46:45 +01:00
2012-01-03 20:00:13 +01:00
2011-10-27 14:34:45 +02:00
2011-10-27 15:27:32 +02:00
2011-11-12 20:15:56 +01:00
2011-09-17 21:55:11 +02:00
2011-12-13 21:46:59 +01:00
2011-12-06 13:48:25 +00:00
2011-11-12 20:17:56 +01:00
2012-01-03 22:27:59 +01:00
2011-12-02 03:23:07 +01:00
2011-12-13 21:46:43 +01:00
2012-01-03 17:52:21 +01:00
2012-01-03 20:01:13 +01:00
2012-01-03 18:26:57 +01:00
2011-10-19 20:26:55 +02:00
2011-12-01 18:46:22 +01:00
2011-11-15 00:41:36 +01:00
2011-11-15 00:41:36 +01:00
2012-01-03 22:50:03 +01:00
2012-01-03 19:49:56 +01:00
2011-04-20 04:48:23 +02:00
2012-01-03 22:50:03 +01:00
2012-01-03 22:50:03 +01:00
2011-11-12 20:49:53 +01:00