OSDN Git Service

Check for null-terminator in ResStringPool::string8At
authorAdam Lesinski <adamlesinski@google.com>
Fri, 10 Nov 2017 01:12:17 +0000 (17:12 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 17 Jan 2018 22:19:39 +0000 (22:19 +0000)
commit5ec65ae909a85d13d03c030be357c8c14a50d306
treeb14c0fc29ad48e36f62325e8ead4536657db81a8
parent6a9c7c4814b3dacd54b27e4cde6ee09e9eba7531
Check for null-terminator in ResStringPool::string8At

All other stringAt methods check for null termination. Be consistent
so that upper levels don't end up with huge corrupt strings.

Bug: 62537081
Test: none
Change-Id: I17bdfb0c1e34507b66c6cad651bbdb12c5d4c417
(cherry picked from commit 3d35a0ea307693a97583a61973e729a5e7db2687)
(cherry picked from commit 97f8cb01149b35b1832c7f9efe85ff19edf1083e)
libs/androidfw/ResourceTypes.cpp