ffvvc / FFmpeg

VVC Decoder for ffmpeg
Other
50 stars 12 forks source link

avcodec/cbs_h266_syntax_template: Check num_output_layers_in_ols #143

Closed nuomi2021 closed 1 year ago

nuomi2021 commented 1 year ago

from the specification: For each OLS, there shall be at least one layer that is an output layer. In other words, for any value of i in the range of 0 to TotalNumOlss − 1, inclusive, the value of NumOutputLayersInOls[ i ] shall be greater than or equal to 1

Fixes: index 257 out of bounds for type 'uint8_t [257]' Fixes: 61160/clusterfuzz-testcase-minimized-ffmpeg_BSF_VVC_METADATA_fuzzer-6709397181825024

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

nuomi2021 commented 1 year ago

merged by upstream