From b50bd1751d5368aae6beab3e166f598bc1a497c1 Mon Sep 17 00:00:00 2001 From: Anuj Joshi Date: Tue, 16 Feb 2021 09:48:17 +0530 Subject: 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 --- fuzzer/aac_enc_fuzzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3