commit | 6521a1b7430e7b3298633236645e2c0b5fd56c00 | [log] [tgz] |
---|---|---|
author | Vishwath Mohan <vishwath@google.com> | Wed Mar 11 16:08:37 2015 -0700 |
committer | Vishwath Mohan <vishwath@google.com> | Wed Mar 11 16:36:53 2015 -0700 |
tree | 73fa9edcde604fc9048807998bd2fa2a7df43fdc | |
parent | 60cd30d99e69ada6d3e3e072ef64e36c4a2ba34d [diff] |
Enforce null-termination in ResStringPool::stringAt Rejects any non null-terminated string that a caller asks ResStringPool::stringAt for, returning NULL instead. The rationale for returning NULL rather than amending the string to add a null-terminator is that conformant APK files will have all their strings null-terminated anyway, and that this is a possible signal of a malformed package. Bug: 15288069 Change-Id: I370937b92f2cadf67fbd54203cbc7d1494be969f