1
0
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:
Martin Storsjo 2017-08-15 14:57:37 +03:00
parent ee6d9476a6
commit 393a86c0db

View File

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