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

Commit 3762e061 authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix possible out of bounds read

Bug: 78656554
Test: manual
Change-Id: I677f827483dcc80afac57fd7ef6807e633542252
parent f9d87cc8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -603,6 +603,9 @@ void ID3::Iterator::getstring(String8 *id, bool otherdata) const {
        // UCS-2
        // API wants number of characters, not number of bytes...
        int len = n / 2;
        if (len == 0) {
            return;
        }
        const char16_t *framedata = (const char16_t *) (frameData + 1);
        char16_t *framedatacopy = NULL;
        if (*framedata == 0xfffe) {