Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/oss-fuzz/speexdec_fuzzer.cc')
-rw-r--r--contrib/oss-fuzz/speexdec_fuzzer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/oss-fuzz/speexdec_fuzzer.cc b/contrib/oss-fuzz/speexdec_fuzzer.cc
index 8ec9051..029b69e 100644
--- a/contrib/oss-fuzz/speexdec_fuzzer.cc
+++ b/contrib/oss-fuzz/speexdec_fuzzer.cc
@@ -311,6 +311,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *fuzz_data, size_t fuzz_size
if (channels==2)
speex_decode_stereo_func(output, frame_size, &stereo);
+ if (INT_MAX - lookahead > skip_samples)
{
int new_frame_size = frame_size;
if (packet_no == 1 && j==0 && skip_samples > 0)