ffvvc / FFmpeg

VVC Decoder for ffmpeg
Other
48 stars 12 forks source link

avcodec/cbs_h266_syntax_template: check aps_adaptation_parameter_set_id #193

Closed nuomi2021 closed 4 months ago

nuomi2021 commented 4 months ago

"When aps_params_type is equal to ALF_APS or SCALING_APS, the value of aps_adaptation_parameter_set_id shall be in the range of 0 to 7, inclusive. When aps_params_type is equal to LMCS_APS, the value of aps_adaptation_parameter_set_id shall be in the range of 0 to 3, inclusive."

Fixes: out of array accesses Fixes: 65932/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VVC_fuzzer-4563412340244480

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg