Skip to content

fix: validate type names#4113

Merged
IgorEisberg merged 1 commit intomainfrom
typefix
Apr 1, 2026
Merged

fix: validate type names#4113
IgorEisberg merged 1 commit intomainfrom
typefix

Conversation

@IgorEisberg
Copy link
Copy Markdown
Collaborator

Fixes a reported security vulnerability where a malicious APK with manipulated type name(s) causing a directory traversal.
This is done by renaming invalid type names that can't be handled by aapt2 in ResTypeSpec, just like we're doing for entry names in ResEntrySpec.
Another tweak is giving the ^attr-private type a more reasonable values XML file name: attrs-private.xml instead of ^attr-privates.xml.

@IgorEisberg IgorEisberg enabled auto-merge (squash) April 1, 2026 18:21
@IgorEisberg IgorEisberg requested a review from iBotPeaches April 1, 2026 18:24
@IgorEisberg IgorEisberg merged commit 65dd848 into main Apr 1, 2026
18 checks passed
@IgorEisberg IgorEisberg deleted the typefix branch April 1, 2026 19:04
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.

2 participants