aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/lavf/pgmpipe
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-07 01:34:16 +0100
commit073fcfe35800d0ad400dd1668727e3741e2a6a34 (patch)
treeb42e669d04ffe9fe9bceef8fef871ab42ad64ac7 /tests/ref/lavf/pgmpipe
parent9f0e36b1011619121fd646b58ea778fb2553b320 (diff)
downloadffmpeg-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 'tests/ref/lavf/pgmpipe')
0 files changed, 0 insertions, 0 deletions