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:
Martin Storsjo 2017-08-15 14:57:37 +03:00
parent ee6d9476a6
commit 393a86c0db
1 changed files with 4 additions and 0 deletions

View File

@ -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) {