aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/decoding_encoding.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-12-02 21:52:23 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-14 16:51:01 +0100
commit9a8d2f51cf0548aa3724e2a46e58416b333c755f (patch)
treec7fa08b768d82c3c102011faf1d3301314eff4cc /doc/examples/decoding_encoding.c
parentd013f51303de27126f92dfa4357c14243019037a (diff)
downloadffmpeg-9a8d2f51cf0548aa3724e2a46e58416b333c755f.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/examples/decoding_encoding.c')
0 files changed, 0 insertions, 0 deletions