Re: [FFmpeg-devel] [PATCH] avcodec/h264dec: fix possible out-of-bounds array access

2021-08-24 Thread James Almer
On 8/25/2021 12:06 AM, Niklas Haas wrote: From: Niklas Haas If slice_type is > 9, the access to ff_h264_golomb_to_pict_type is out-of-bounds. Fix this by simply setting the slice_type to 0 in this case. This is completely inconsequential because the value is only being used to being used as an

[FFmpeg-devel] [PATCH] avcodec/h264dec: fix possible out-of-bounds array access

2021-08-24 Thread Niklas Haas
From: Niklas Haas If slice_type is > 9, the access to ff_h264_golomb_to_pict_type is out-of-bounds. Fix this by simply setting the slice_type to 0 in this case. This is completely inconsequential because the value is only being used to being used as an offset in the calculation of the film grain