]> git.saurik.com Git - android/aapt.git/commit
Fix bitmask in aapt's StringPool length construction
authorKenny Root <kenny@the-b.org>
Fri, 21 Aug 2009 20:23:45 +0000 (15:23 -0500)
committerKenny Root <kroot@google.com>
Fri, 4 Dec 2009 21:40:54 +0000 (13:40 -0800)
commit0dfe5352d96bdf3e66961df2fd43117b9030bacd
tree06357034df539f3a1cf6fbe1a44207d7e9415e7d
parent626234305e1d602668a2e7fd2c7b3178b57beed4
Fix bitmask in aapt's StringPool length construction

The StringPool indicates the length of a string with a 16-bit
integer. If the length of the string is greater than 0x7FFF,
it splits it into two 16-bit integers with the first one
having the high bit set.

The length calculation has a small bug that masks off the
19 bits instead of the first 15 bits as intended.
StringPool.cpp