commit | 984e897303519e02192a77aef372c2a7f53aca6b | [log] [tgz] |
---|---|---|
author | Jason O'Brien <jasonobrien@google.com> | Thu Aug 26 19:07:47 2021 -0500 |
committer | Jason O'Brien <jasonobrien@google.com> | Fri Aug 27 19:12:25 2021 +0000 |
tree | e26fde697844b4a67f91faa6c4d89f05950c74a3 | |
parent | 2272f0a1b7bd4ea556b673c76f58ed29e6ff7a89 [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