Fixes: out of array access Fixes: 70734/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-4741427068731392 Fixes: 383194070/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5302387708854272
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -917,8 +917,10 @@ static int decode_usac_stereo_info(AACDecContext *ac, AACUSACConfig *usac, · 916 unmodified lines | |||
| 917 | } | 917 | } |
| 918 | 918 | ||
| 919 | ret = setup_sce(ac, sce1, usac); | 919 | ret = setup_sce(ac, sce1, usac); |
| 920 | if (ret < 0) | 920 | if (ret < 0) { |
| 921 | ics2->max_sfb = 0; | ||
| 921 | return ret; | 922 | return ret; |
| 923 | } | ||
| 922 | 924 | ||
| 923 | ret = setup_sce(ac, sce2, usac); | 925 | ret = setup_sce(ac, sce2, usac); |
| 924 | if (ret < 0) | 926 | if (ret < 0) |