mirror of https://github.com/mstorsjo/fdk-aac.git
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)
|
||||
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 */
|
||||
if (interleaved) {
|
||||
|
|
Loading…
Reference in New Issue