summaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-02 21:52:23 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-06 22:40:41 +0100
commit5adb5d9d894aa495e7bf9557b4c78350cbfc9d32 (patch)
treeede3dcf04a9ac33336c27be7fa673ba62a8f2bf0 /libavformat/mxfdec.c
parenta0a39acd01ea3a98274cd10fef318a35853ff8cd (diff)
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