1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2026-05-16 08:38:24 +02:00
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-09-02 06:26:45 +01:00
2015-09-01 14:35:32 +02:00
2015-10-08 13:15:42 +02:00
2015-09-03 09:47:44 +00:00
2015-10-12 21:46:54 +02:00
2015-11-26 16:05:41 +01:00
2015-09-04 09:33:46 -04:00
2015-09-08 22:31:44 +02:00
2015-10-08 13:15:42 +02:00
2015-10-12 21:46:54 +02:00
2015-09-07 15:32:56 +02:00