1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00
FFmpeg/libavcodec
Dale Curtis f8fcb6bbf0 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>
2017-12-07 23:38:06 +01:00
..
2017-07-11 13:22:02 +07:00
2017-09-10 19:08:33 +02:00
2017-05-29 14:08:07 +02:00
2017-07-16 16:53:02 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-07-07 15:23:58 -04:00
2017-05-01 17:55:22 +02:00
2017-05-08 12:30:09 +02:00
2017-12-07 23:38:06 +01:00
2017-07-07 15:29:57 -04:00
2017-04-23 14:27:47 +07:00
2017-06-11 10:00:16 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-05-23 15:25:11 +02:00
2017-08-30 12:13:01 +02:00
2017-09-16 19:55:03 +02:00
2017-08-30 12:13:01 +02:00
2017-10-03 19:47:37 -03:00
2017-04-23 14:27:47 +07:00
2017-06-18 14:05:57 +02:00
2017-07-12 20:36:13 +02:00
2017-07-12 20:36:13 +02:00
2017-10-03 19:47:37 -03:00
2017-10-03 19:47:37 -03:00
2017-08-11 04:28:52 +02:00
2017-09-07 12:08:32 +02:00
2017-09-28 22:41:08 +01:00
2017-08-18 17:18:32 +01:00
2017-07-20 08:24:46 +01:00
2017-07-07 15:26:35 -04:00
2017-05-31 16:08:46 +02:00
2017-08-07 13:09:41 +02:00
2017-04-23 14:27:47 +07:00
2017-07-26 06:13:05 +07:00
2017-07-11 13:22:02 +07:00
2017-10-11 02:15:21 +02:00
2017-07-01 12:03:34 -03:00
2017-09-10 19:08:23 +02:00
2017-09-22 01:33:22 +02:00
2017-05-25 20:08:31 +02:00
2017-05-25 14:30:04 +02:00
2017-10-04 23:14:37 +01:00
2017-07-14 02:30:37 +02:00
2017-07-14 02:30:37 +02:00
2017-05-21 13:23:22 +02:00
2017-07-05 03:19:27 +02:00
2017-09-22 01:33:22 +02:00
2017-10-03 19:47:37 -03:00
2017-07-24 17:52:42 +02:00