diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2020-05-26 20:26:28 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-20 12:19:12 +0200 |
commit | c83a7dd25fdf9636e7e5da3fad5e0d82035b9c86 (patch) | |
tree | 6325e1d4b9b9c742d2e5bd3721c9a0fd6b80ac7c /compat/os2threads.h | |
parent | 29bf3fafa0c46b6fbb205bc878fd3bcb6aa0d8cb (diff) | |
download | ffmpeg-c83a7dd25fdf9636e7e5da3fad5e0d82035b9c86.tar.gz |
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>
Diffstat (limited to 'compat/os2threads.h')
0 files changed, 0 insertions, 0 deletions