[FFmpeg-devel] [PATCH] mjpegdec: consider chroma subsampling in size check
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Sun Dec 6 22:43:28 CET 2015
On 06.12.2015 22:18, Michael Niedermayer wrote:
> On Sun, Dec 06, 2015 at 06:56:35PM +0100, Andreas Cadhalpun wrote:
>> mjpegdec.c | 11 ++++++++---
>> 1 file changed, 8 insertions(+), 3 deletions(-)
>> a294ce9a780fdd710d3661bc201b0c72d30786d3 0001-mjpegdec-consider-chroma-subsampling-in-size-check.patch
>> From 7788195340e1d0e1206660f12f003f952da750a6 Mon Sep 17 00:00:00 2001
>> From: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> Date: Wed, 2 Dec 2015 21:52:23 +0100
>> Subject: [PATCH] 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.
>>
>
> LGTM
Pushed.
Best regards,
Andreas
More information about the ffmpeg-devel
mailing list