Skip to content

Commit

Permalink
Check that the SBR decoder has been properly initialized
Browse files Browse the repository at this point in the history
This probably doesn't fix the root cause, but at least fixes
the issues found in this particular fuzzed sample.

Fixes: 1994/clusterfuzz-testcase-minimized-6368089497141248

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
  • Loading branch information
mstorsjo committed Jun 12, 2017
1 parent 4bc2587 commit 9f2206e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libSBRdec/src/sbr_dec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,10 @@ resetSbrDec (HANDLE_SBR_DEC hSbrDec,
FIXP_DBL **OverlapBufferReal = hSbrDec->QmfBufferReal;
FIXP_DBL **OverlapBufferImag = hSbrDec->QmfBufferImag;

if (!hSbrDec->LppTrans.pSettings) {
return SBRDEC_NOT_INITIALIZED;
}

/* assign qmf time slots */
assignTimeSlots( hSbrDec, hHeaderData->numberTimeSlots * hHeaderData->timeStep, useLP);

Expand Down

0 comments on commit 9f2206e

Please sign in to comment.