Files
FFmpeg/libavcodec
Andreas Cadhalpun 2e54b8c379 mjpegdec: consider chroma subsampling in size check
If the chroma components are subsampled, smaller buffers are allocated
for them. In that case the maximal block_offset for the chroma
components is not as large as for the luma component.

This fixes out of bounds writes causing segmentation faults or memory
corruption.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 5adb5d9d89)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-07 01:34:13 +01:00
..
2015-08-29 06:44:20 +01:00
2015-09-02 06:26:45 +01:00
2015-08-22 06:16:31 +01:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2015-08-27 17:05:44 +02:00
2015-06-14 15:09:33 +02:00
2014-12-18 23:27:14 +01:00
2015-09-01 14:35:32 +02:00
2015-02-06 19:07:29 +01:00
2014-11-14 20:25:02 +01:00
2015-07-22 23:23:29 +02:00
2015-08-18 10:24:01 -04:00
2015-04-18 14:14:24 -03:00
2015-08-04 04:16:43 +02:00
2015-05-06 17:50:09 +02:00
2015-10-08 13:15:42 +02:00
2015-08-27 02:59:43 +02:00
2014-10-28 12:22:03 +01:00
2015-08-18 11:48:49 -04:00
2015-03-14 14:05:25 +01:00
2015-09-03 09:47:44 +00:00
2015-08-18 11:48:49 -04:00
2015-10-12 21:46:54 +02:00
2015-08-11 23:16:35 +02:00
2015-07-27 16:21:14 +01:00
2015-08-21 08:46:05 +02:00
2015-08-21 08:46:05 +02:00
2015-08-18 09:46:49 -04:00
2015-11-26 16:05:41 +01:00
2015-09-04 09:33:46 -04:00
2015-05-20 15:50:58 +02:00
2015-09-08 22:31:44 +02:00
2015-06-17 20:11:43 +02:00
2015-01-17 13:01:26 +01:00
2014-12-20 11:29:19 +01:00
2014-12-03 11:56:22 +01:00
2015-08-28 04:25:15 +02:00
2015-01-22 01:49:04 +01:00
2015-08-18 10:24:01 -04:00
2015-07-27 19:13:48 +02:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2015-08-18 11:48:49 -04:00
2015-07-22 23:23:29 +02:00
2014-08-31 10:25:36 +02:00
2014-11-25 02:00:27 +01:00
2015-10-08 13:15:42 +02:00
2014-08-24 11:05:42 +00:00
2014-09-30 20:21:14 +02:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2014-08-24 11:05:42 +00:00
2015-08-15 15:06:01 +02:00
2014-10-22 23:12:38 +02:00
2015-08-18 11:48:49 -04:00
2015-10-12 21:46:54 +02:00
2015-08-19 14:15:43 +02:00
2015-09-07 15:32:56 +02:00
2015-08-03 10:12:10 +02:00
2014-08-24 11:05:42 +00:00
2015-07-27 15:24:58 +01:00