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

Unverified Commit 68a36cdb authored by Santiago Seifert's avatar Santiago Seifert Committed by Kevin F. Haggerty
Browse files

Avoid read out of bounds

Bug: 230493653
Change-Id: Ieca5a5390d3cf73fff6aa552d065363d84e1ccc2
Merged-In: Ieca5a5390d3cf73fff6aa552d065363d84e1ccc2
Test: See bug for PoC.
(cherry picked from commit 306aad77)
(cherry picked from commit 9d33304e)
Merged-In: Ieca5a5390d3cf73fff6aa552d065363d84e1ccc2
parent 86e7c679
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4771,7 +4771,7 @@ status_t MPEG4Extractor::updateAudioTrackInfoFromESDS_MPEG4Audio(
        if (len2 == 0) {
            return ERROR_MALFORMED;
        }
        if (offset >= csd_size || csd[offset] != 0x01) {
        if (offset + len1 > csd_size || csd[offset] != 0x01) {
            return ERROR_MALFORMED;
        }