1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-14 22:22:59 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt c83a7dd25f avcodec/h264_parser: Fix undefined left shift
Use an uint32_t for the NAL unit size of an AVC H.264 NAL unit instead
of an int as a left shift of a signed value is undefined behaviour
if the result doesn't fit into the target type.

Also make the log message never output negative lengths.

Fixes: left shift of 16711968 by 8 places cannot be represented in type 'int'
Fixes: 36601/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6581933285965824

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-20 12:19:12 +02:00
..
2021-06-02 17:30:24 +02:00
2021-07-22 14:47:57 +02:00
2021-07-08 20:10:01 +02:00
2021-08-18 08:55:56 +02:00
2021-07-22 14:47:57 +02:00
2021-08-10 18:05:13 +02:00
2021-07-22 15:02:30 +02:00
2021-07-22 12:59:07 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-08-06 21:04:43 +02:00
2021-08-05 19:46:33 +02:00
2021-07-08 20:10:17 +02:00
2021-08-18 08:55:56 +02:00
2021-06-08 12:52:49 +02:00
2021-07-22 14:47:57 +02:00
2021-08-02 14:30:52 +02:00
2021-05-05 14:17:03 +02:00
2021-07-08 20:10:17 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 15:02:30 +02:00
2021-08-18 08:55:56 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-07-22 14:47:57 +02:00
2021-08-18 08:55:56 +02:00
2021-05-12 06:00:13 +02:00