diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-02 21:52:23 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-12-06 22:40:41 +0100 |
commit | 5adb5d9d894aa495e7bf9557b4c78350cbfc9d32 (patch) | |
tree | ede3dcf04a9ac33336c27be7fa673ba62a8f2bf0 /libavformat/mxfdec.c | |
parent | a0a39acd01ea3a98274cd10fef318a35853ff8cd (diff) | |
download | ffmpeg-5adb5d9d894aa495e7bf9557b4c78350cbfc9d32.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>
Diffstat (limited to 'libavformat/mxfdec.c')
0 files changed, 0 insertions, 0 deletions