mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-18 04:00:36 +01:00
Check that pSettings is initialized
Fixes: 2872/clusterfuzz-testcminimized-4529959869612032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
This commit is contained in:
parent
ee6d9476a6
commit
393a86c0db
@ -1446,6 +1446,10 @@ sbrDecoder_DecodeElement (
|
|||||||
|
|
||||||
if (channelMapping[0] == 255 || channelMapping[1] == 255)
|
if (channelMapping[0] == 255 || channelMapping[1] == 255)
|
||||||
return SBRDEC_UNSUPPORTED_CONFIG;
|
return SBRDEC_UNSUPPORTED_CONFIG;
|
||||||
|
if (!pSbrChannel[0]->SbrDec.LppTrans.pSettings)
|
||||||
|
return SBRDEC_UNSUPPORTED_CONFIG;
|
||||||
|
if (stereo && !pSbrChannel[1]->SbrDec.LppTrans.pSettings)
|
||||||
|
return SBRDEC_UNSUPPORTED_CONFIG;
|
||||||
|
|
||||||
/* Set strides for reading and writing */
|
/* Set strides for reading and writing */
|
||||||
if (interleaved) {
|
if (interleaved) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user