summaryrefslogtreecommitdiff
path: root/libmat2/archive.py (follow)
AgeCommit message (Collapse)Author
2022-07-05Prevent arbitrary file read via zip archivesjvoisin
A zip file with a file pointing to /etc/passwd would, upon being cleaned by mat2, produce a file with the filesystem's /etc/passwd file.
2022-07-05Show a scary message in case of path traversal attemptjvoisin
2022-05-05Minor cleanupjvoisin
2021-12-13Make libmat2 more robust against corrupted zip filesjvoisin
2021-12-09Please the linters wrt. the previous commitjvoisin
2021-12-08zip archives: keep individual files compression typeDenis 'GNUtoo' Carikli
While hardcoding the compression to zipfile.ZIP_DEFLATED works for most use cases of mat, being able to produce cleaned up uncompressed zip files is useful for content that cannot be compressed more. In addition it also enables to use mat2 for reproducible builds of Android bootanimation files file that don't support compression. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2021-11-23Make the linter happierjvoisin
2020-03-08Vastly improve ppt compatibilityjvoisin
2019-11-30This is mat2, not MAT2georg
Closes #131
2019-10-12Remove a useless `\`jvoisin
2019-10-12Replace abstractstaticmethod with abstractmethodjvoisin
Apparently, abstractstaticmethod is deprecated since python3.3.
2019-09-01Mark a comment as FPjvoisin
2019-07-20Fix mypyjvoisin
2019-07-13Compress cleaned zip archives by defaultjvoisin
2019-05-01Add some verification for "dangerous" tarfilesjvoisin
2019-04-27Handle weird permissions in tar archivesjvoisin
2019-04-27Improve the display of tarfile's members mtimejvoisin
2019-04-27Add support for compressed tar filesjvoisin
2019-04-27Add tar archive supportjvoisin
2019-02-25Document the previous commitjvoisin
2019-02-24In archive-based formats, the `mimetype` file comes firstjvoisin
This should improve epub compatibility, along with other formats as a side-effect
2019-02-04Refactor a bit office get_meta handlingjvoisin
This should make easier to get more metadata from archive-based file formats.
2019-02-03Whenever possible, use bwrap for subprocessesintrigeri
This should closes #90
2018-10-25Add support for zip filesjvoisin
2018-10-25Improve archive-based parser's robustness against corrupted embedded filesjvoisin
2018-10-25Implement get_meta() for archivesjvoisin
2018-10-12Bump mypy typing coveragejvoisin
2018-10-03Improve mat2's cli reliabilityjvoisin
- Replace some class members by instance members - Don't thread the cleaning process anymore for now
2018-10-02Use [Content_Types].xml to improve MS Office coveragejvoisin
2018-09-24Second pass of minor formattingjvoisin
2018-09-24Fix some minor formatting issuesjvoisin
2018-09-18Insert archive members in lexicographic orderjvoisin
2018-09-06Make pylint happyjvoisin
2018-09-06Split office and archivesjvoisin