fix: support alignment towards resTable_entry start #3452
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes: #3428
We are finding in applications (Android 14 QBR2) that we are 2 bytes short prior to reading ResTable_entry. Using
entriesStart
we can determine where the entries start. Normally we never needed to use this field and thus skipped it.However, unless we have a bug and did miss reading 2 bytes - it seems padding/alignment is putting these entries at a different location. We can use
entriesStart
as intended and skip ourselves to that location when the res of the chunk is done reading.