diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-02 21:52:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-12-07 01:34:16 +0100 |
commit | 073fcfe35800d0ad400dd1668727e3741e2a6a34 (patch) | |
tree | b42e669d04ffe9fe9bceef8fef871ab42ad64ac7 /doc/ffmpeg-bitstream-filters.texi | |
parent | 9f0e36b1011619121fd646b58ea778fb2553b320 (diff) | |
download | ffmpeg-073fcfe35800d0ad400dd1668727e3741e2a6a34.tar.gz |
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 5adb5d9d894aa495e7bf9557b4c78350cbfc9d32)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/ffmpeg-bitstream-filters.texi')
0 files changed, 0 insertions, 0 deletions