aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/timecode.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-17 21:51:33 +0100
commita90967013b1c2519cd7f7969ba29562cf37565c4 (patch)
treea0e159e9f129eb7fa7b1b5e71de1dc9a70ea97c8 /libavutil/timecode.c
parent7db1014b314abe4f5eaf9ae7f7de5d030b09a6a1 (diff)
downloadffmpeg-a90967013b1c2519cd7f7969ba29562cf37565c4.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: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavutil/timecode.c')
0 files changed, 0 insertions, 0 deletions