History

avcodec/h264_slice: Use unsigned for fgs seed computation

Fixes: signed integer overflow: 2147481600 + 13408 cannot be represented in type 'int' Fixes: 53963/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-4650467311616000

Michael Niedermayer committed 3 years ago

Commit 685c0cf1 parent 9ea2c791 file · +1 −1Browse files

Unified · Split

libavcodec/h264_slice.c+1−1
@@ -1228,7 +1228,7 @@ static int h264_export_frame_props(H264Context *h) · 1227 unmodified lines
12281228
12291229 ret = ff_h2645_sei_to_frame(out, &h->sei.common, AV_CODEC_ID_H264, h->avctx,
12301230 &sps->vui, sps->bit_depth_luma, sps->bit_depth_chroma,
1231− cur->poc + (h->poc_offset << 5));
1231+ cur->poc + (unsigned)(h->poc_offset << 5));
12321232 if (ret < 0)
12331233 return ret;
12341234

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t