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

Commit c81cdd3e authored by Roger1 Jonsson's avatar Roger1 Jonsson Committed by android-build-merger
Browse files

Merge "Prevent crash for malformed ID3 COMM frame" am: 944706f4 am: 5c487ff3

am: 2e015190

Change-Id: I7cf50f96b90c573d437becb478adce718a1d193b
parents a5a70db5 2e015190
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -534,6 +534,9 @@ void ID3::Iterator::getstring(String8 *id, bool otherdata) const {
    }
    size_t n = mFrameSize - getHeaderLength() - 1;
    if (otherdata) {
        if (n < 5) {
            return;
        }
        // skip past the encoding, language, and the 0 separator
        frameData += 4;
        int32_t i = n - 4;