aboutsummaryrefslogtreecommitdiffstats
path: root/fuzzer
diff options
context:
space:
mode:
authorAnuj Joshi <anuj.joshi@ittiam.com>2021-02-16 09:48:17 +0530
committerAnuj Joshi <anuj.joshi@ittiam.com>2021-02-17 17:01:03 +0530
commitb50bd1751d5368aae6beab3e166f598bc1a497c1 (patch)
treee8631b7cba868339a0e3a52c582130fd6a3f043d /fuzzer
parentfbed528d620cc01baa4b01eebab0c30fe3139be1 (diff)
downloadfdk-aac-b50bd1751d5368aae6beab3e166f598bc1a497c1.tar.gz
fdk-aac-b50bd1751d5368aae6beab3e166f598bc1a497c1.tar.bz2
fdk-aac-b50bd1751d5368aae6beab3e166f598bc1a497c1.zip
Fix improper assignment in aac_enc_fuzzer
This commit updates the fuzzer to use correct value of kSignalingModesSize and prevent OOB access on kSignalingModes Test: ./aac_enc_fuzzer Bug: 180220144 Change-Id: Ic9d01c5c166f2291d8d8ffacaa7813fb1560322b
Diffstat (limited to 'fuzzer')
-rw-r--r--fuzzer/aac_enc_fuzzer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzer/aac_enc_fuzzer.cpp b/fuzzer/aac_enc_fuzzer.cpp
index 4cce6fa..5a35d70 100644
--- a/fuzzer/aac_enc_fuzzer.cpp
+++ b/fuzzer/aac_enc_fuzzer.cpp
@@ -100,7 +100,7 @@ constexpr int32_t kChannelOrder[] = {CH_ORDER_MPEG, CH_ORDER_WAV};
constexpr size_t kChannelOrderSize = size(kChannelOrder);
constexpr int32_t kSignalingModes[] = {-1, 0, 1, 2, 3};
-constexpr size_t kSignalingModesSize = size(kGranuleLengths);
+constexpr size_t kSignalingModesSize = size(kSignalingModes);
constexpr int32_t kAudioMuxVer[] = {-1, 0, 1, 2};
constexpr size_t kAudioMuxVerSize = size(kAudioMuxVer);