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: support .arr, support ios/wasm binaries #4521

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

iaincoulter
Copy link

Code changes to include .aar in list of zip type files. AAR is an android archive
Binary file signatures for different apple mach_o/universal and arm support.
Binary file signature for WASM binary

@iaincoulter iaincoulter changed the title fix: support .arr, support ios/wasm binaries fix: add wasm support for file command in version scanner Oct 22, 2024
@iaincoulter iaincoulter changed the title fix: add wasm support for file command in version scanner fix: support .arr, support ios/wasm binaries Oct 22, 2024
@iaincoulter
Copy link
Author

Later change as realised some machines use "file" in version_scanner which i had not handled. Fixed "file" method so it also handles WebAssembly and backup python code handles various Mach-O formats and Webassembly via regex in file.py

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good; thanks for thinking to add this support. Could you add some tests for each signature? Probably the easiest is to add a few tiny mostly-empty archives into test/data (I think our current tests are often metadata + a text file) but you might be able to do some magic with pytest and mock to fake it, or have the test generate the file.

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