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

Commit c4293c14 authored by Nobuhiro Hayashi's avatar Nobuhiro Hayashi
Browse files

aapt: Remove terminal pointer incrementaion

When initialization, 'end' pointer refers terminal
character in a string. But it is incremented in
while loop. It occurs the access to non-secure memory.

Issue detail
  http://code.google.com/p/android/issues/detail?id=24896

Change-Id: I751d1154d797738c87a66374a66933528c045be5
parent 8ea93aa6
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2253,7 +2253,6 @@ bool ResourceTable::getAttributeFlags(
        bool failed = false;
        while (pos < end && !failed) {
            const char16_t* start = pos;
            end++;
            while (pos < end && *pos != '|') {
                pos++;
            }