From c4293c14083d833bb5d13dc19e73daed8cbbb4ea Mon Sep 17 00:00:00 2001 From: Nobuhiro Hayashi Date: Mon, 30 Jan 2012 18:42:20 +0900 Subject: 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 --- tools/aapt/ResourceTable.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'tools/aapt') diff --git a/tools/aapt/ResourceTable.cpp b/tools/aapt/ResourceTable.cpp index fdb39ca..a417311 100644 --- a/tools/aapt/ResourceTable.cpp +++ b/tools/aapt/ResourceTable.cpp @@ -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++; } -- cgit v1.1