[FFmpeg-devel] [mpeg4video] Fix undefined shift on assumed 8-bit input.

Dale Curtis dalecurtis at chromium.org
Sat Nov 18 02:07:42 EET 2017


decode_user_data() attempts to create an integer |build|
value with 8 bits of spacing for 3 components. However
each component is an int32_t, so shifting each component
is undefined for values outside of the 8 bit range.

This patch simply clamps input to 8-bits per component.

Signed-off-by: Dale Curtis <dalecurtis at chromium.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_mpeg4_shift_v1.patch
Type: text/x-patch
Size: 1251 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171117/5798793a/attachment.bin>


More information about the ffmpeg-devel mailing list