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

Commit 5293df6b authored by Lajos Molnar's avatar Lajos Molnar Committed by Android (Google) Code Review
Browse files

Merge changes from topic "am-b89fd127-e87f-4013-8a91-d8bfa01a2650" into lmp-mr1-app-dev

* changes:
  [automerger] stagefright: avoid buffer overflow in base64 decoder am: 5e96386a am: 5045de6f
  [automerger] stagefright: avoid buffer overflow in base64 decoder am: 5e96386a
  stagefright: avoid buffer overflow in base64 decoder
parents 442d5ba7 8f6c537f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -78,8 +78,7 @@ sp<ABuffer> decodeBase64(const AString &s) {
        accum = (accum << 6) | value;

        if (((i + 1) % 4) == 0) {
            out[j++] = (accum >> 16);

            if (j < outLen) { out[j++] = (accum >> 16); }
            if (j < outLen) { out[j++] = (accum >> 8) & 0xff; }
            if (j < outLen) { out[j++] = accum & 0xff; }