1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
FFmpeg/libavcodec
Dale Curtis 78782ca62d Fix undefined shift on assumed 8-bit input.
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
and prints out a warning that the values were clamped.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 7010dd98b575d2e39fca947e609b85be7490b269)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-31 22:56:14 +01:00
..
2015-08-29 06:44:20 +01:00
2016-08-23 12:36:25 +02:00
2015-08-22 06:16:31 +01:00
2015-08-27 17:05:44 +02:00
2017-06-05 23:16:54 +02:00
2017-07-16 17:02:32 +02:00
2016-11-26 15:12:25 +01:00
2016-08-15 18:54:34 +02:00
2017-05-20 03:41:33 +02:00
2017-05-20 03:41:34 +02:00
2018-01-31 22:56:14 +01:00
2015-08-04 04:16:43 +02:00
2015-10-08 13:15:42 +02:00
2015-08-27 02:59:43 +02:00
2017-05-20 03:41:33 +02:00
2016-11-27 00:46:34 +01:00
2015-09-03 09:47:44 +00:00
2015-08-18 11:48:49 -04:00
2015-08-11 23:16:35 +02:00
2016-01-28 15:53:53 +01:00
2015-08-21 08:46:05 +02:00
2015-08-21 08:46:05 +02:00
2016-04-27 04:40:11 +02:00
2015-08-18 09:46:49 -04:00
2015-11-26 16:05:41 +01:00
2015-09-04 09:33:46 -04:00
2016-08-15 18:54:34 +02:00
2017-06-05 23:16:54 +02:00
2017-06-05 23:16:54 +02:00
2015-08-15 15:06:01 +02:00
2015-08-18 11:48:49 -04:00
2015-10-12 21:46:54 +02:00
2015-08-19 14:15:43 +02:00
2015-09-07 15:32:56 +02:00
2017-06-05 23:16:54 +02:00
2017-05-20 03:41:33 +02:00
2017-07-19 02:50:35 +02:00