You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/hevc/ps: Fix dependant layer id check
Fixes: shift exponent 49 is too large for 32-bit type 'int' Fixes: 398060145/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5023082406543360 Reviewed-by: James Almer <jamrial@gmail.com> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -652,8 +652,8 @@ static int decode_vps_ext(GetBitContext *gb, AVCodecContext *avctx, HEVCVPS *vps
|
|||||||
|
|
||||||
/* Consequence of established layer dependencies */
|
/* Consequence of established layer dependencies */
|
||||||
if (layer1_id_included &&
|
if (layer1_id_included &&
|
||||||
layer1_id_included != ((1 << vps->layer_id_in_nuh[0]) |
|
layer1_id_included != ((1ULL << vps->layer_id_in_nuh[0]) |
|
||||||
(1 << vps->layer_id_in_nuh[1]))) {
|
(1ULL << vps->layer_id_in_nuh[1]))) {
|
||||||
av_log(avctx, AV_LOG_ERROR,
|
av_log(avctx, AV_LOG_ERROR,
|
||||||
"Dependent layer not included in layer ID?\n");
|
"Dependent layer not included in layer ID?\n");
|
||||||
return AVERROR_PATCHWELCOME;
|
return AVERROR_PATCHWELCOME;
|
||||||
|
Reference in New Issue
Block a user