Skip to content

Commit c4293c1

Browse files
committed
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
1 parent 8ea93aa commit c4293c1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/aapt/ResourceTable.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,6 @@ bool ResourceTable::getAttributeFlags(
22532253
bool failed = false;
22542254
while (pos < end && !failed) {
22552255
const char16_t* start = pos;
2256-
end++;
22572256
while (pos < end && *pos != '|') {
22582257
pos++;
22592258
}

0 commit comments

Comments
 (0)