Skip to content

Extract calls#12

Open
viraptor wants to merge 2 commits intomasterfrom
extract-calls
Open

Extract calls#12
viraptor wants to merge 2 commits intomasterfrom
extract-calls

Conversation

@viraptor
Copy link
Collaborator

@viraptor viraptor commented Jun 9, 2020

Add the extract API.
These should be compatible with the zipfile module.

If extractall runs into situation where the file would be extracted below the specified path, it will throw an exception.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 9, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@viraptor
Copy link
Collaborator Author

viraptor commented Jun 9, 2020

@pombredanne Could you check if that works well for you?
I still have to fix up the mypy, but otherwise may release a new version with the added apis soon.

viraptor and others added 2 commits March 18, 2026 18:22
Add the extract API to be compatible with the zipfile module.

If extractall runs into situation where the file would be extracted
below the specified path, it will throw an exception.
@qkaiser
Copy link
Collaborator

qkaiser commented Mar 18, 2026

Pushed a fixup to make it actually work. For path traversal we should use https://github.com/onekey-sec/unblob/blob/93114fe5b009da4c57c9fdcf1de231762f11da69/python/unblob/file_utils.py#L33 but this requires moving to pathlib, something that can be done in #23

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