Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: end parsing if EOF is hit #3223

Merged
merged 1 commit into from Jul 26, 2023
Merged

fix: end parsing if EOF is hit #3223

merged 1 commit into from Jul 26, 2023

Conversation

iBotPeaches
Copy link
Owner

@iBotPeaches iBotPeaches commented Jul 26, 2023

Thanks to the detailed research here: #2070 (comment)

It was easy to see that some form of obfuscation (albeit risky) is removing the trailing end-namespace chunks. Since AOSP is smart enough to not read past EOF - it doesn't break on aapt or host.

We now check for the end of file during chunk parsing and jump out early. This should be fine.


fixes: #2070

@iBotPeaches iBotPeaches marked this pull request as ready for review July 26, 2023 11:04
@iBotPeaches iBotPeaches merged commit 772646f into master Jul 26, 2023
31 checks passed
@iBotPeaches iBotPeaches deleted the issue-2070 branch July 26, 2023 11:27
@iBotPeaches iBotPeaches added this to the v2.8.2 milestone Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error When Decoding Manifest
1 participant