commit | 74f78adb63ece5ee4827528cb5c1a0302e9ac9ce | [log] [tgz] |
---|---|---|
author | Jason O'Brien <jasonobrien@google.com> | Thu Aug 26 19:07:47 2021 -0500 |
committer | Aemon Cannon <aemon@google.com> | Thu Dec 02 14:59:52 2021 +0000 |
tree | 73740663420e68e7b9499cefc189b25fde448067 | |
parent | 990528e9bef09158a5024f30a7be194cb16ac206 [diff] |
Fix segfault with sparse encoding The native code that underlies `Resources#getIdentifier()` did not take sparse encoding into account when calculating offsets, resulting in either garbage or SEGV_MAPERR whenever a resource is first encountered in a sparsely encoded configuration. Bug: 197976367 Test: atest libandroidfw_tests --host Change-Id: Ib7550fe2e05005550f59129a06be5712b74bc9c8 (cherry picked from commit 984e897303519e02192a77aef372c2a7f53aca6b)