Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69639880 authored by Neelkamal Semwal's avatar Neelkamal Semwal
Browse files

mp3dec: Ignore integer overflow in pvmp3_st_intensity

Test: poc in bug description
Test: atest Mp3DecoderTest -- --enable-module-dynamic-download=true
Test: atest VtsHalMediaC2V1_0TargetAudioDecTest

Bug: 170373840

Change-Id: I7f1614bf418f5b1df25846316099110d87ce91b8
parent 086eb84e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -219,6 +219,9 @@ void pvmp3_st_mid_side(int32 xr[SUBBANDS_NUMBER*FILTERBANK_BANDS],
; FUNCTION CODE
----------------------------------------------------------------------------*/

#if __has_attribute(no_sanitize)
__attribute__((no_sanitize("integer")))
#endif
void pvmp3_st_intensity(int32 xr[SUBBANDS_NUMBER*FILTERBANK_BANDS],
                        int32 xl[SUBBANDS_NUMBER*FILTERBANK_BANDS],
                        int32 is_pos,