summaryrefslogtreecommitdiff
path: root/libmat2 (follow)
AgeCommit message (Collapse)Author
2025-04-03Properly handle an exceptionjvoisin
``` Traceback (most recent call last): File "/builds/jvoisin/mat2/tests/test_deep_cleaning.py", line 147, in test_office meta = p.get_meta() File "/builds/jvoisin/mat2/libmat2/archive.py", line 155, in get_meta zin.extract(member=item, path=temp_folder) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/zipfile/__init__.py", line 1762, in extract return self._extract_member(member, path, pwd) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/zipfile/__init__.py", line 1829, in _extract_member os.makedirs(upperdirs, exist_ok=True) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen os>", line 227, in makedirs OSError: [Errno 28] No space left on device: '/tmp/tmptl1ibyv6/word/theme' ``` This should never happen™, but just in case…
2025-03-18Add webp supportVincent Deffontaines
2025-01-09Significantly improve portability0.13.5jvoisin
2024-09-13Wait to remove elements until they are all processedAlex Marchant
2024-09-13Catch a MemoryError in cairojvoisin
This should close #202
2024-07-18Keep orientation metadatamatiargs
2024-04-05Remove a duplicate functionjvoisin
This is a leftover from today's best-effort merges.
2024-04-05Remove dangling references from document.xml.relsAlex Marchant
The file `word/_rels/document.xml.rels` is similar to `[Content_Types].xml` and has references to other files in the archive. If those references aren't removed Word refuses to open the document. # Please enter the commit message for your changes. Lines starting
2024-04-05Merge branch 'alexmarchant-utf-8-encode-all'jvoisin
2024-04-05Strip comment references from document.xmlAlex Marchant
2024-04-03Make utf-8 explicit in all tree.write callsAlex Marchant
2024-04-03Strip comment references from document.xmlAlex Marchant
2024-04-03Update comments file regexAlex Marchant
2023-11-13Raise a ValueError for invalid FLAC files to please mypyjvoisin
2023-11-13parsers: Inherit the sandbox option when creating additional parsersRomain Vigier
2023-09-07Properly handle a cairo exceptionjvoisin
2023-07-11Add more files to ignore for MSOffice documentsJason Smalls
2023-07-11Add a variant mimetype for bmpJason Smalls
2023-07-11Harden get_meta in archive.py against variants of CVE-2022-35410Jason Smalls
2023-05-03Use proper type annotations instead of commentsjvoisin
2023-05-03Make use of is_dir/isdir for archivesjvoisin
2023-03-07fix: Typing in the parser factoryGu1nn3zz
2023-01-31Explicitly pass a parameter to functools.lru_cachejvoisin
2023-01-28Another typing passjvoisin
2023-01-28Fix the type annotationsjvoisin
2023-01-14imghdr is deprecatedjvoisin
2022-12-25Improve xlsx supportjvoisin
2022-11-21Remove pyflakesjvoisin
Isn't borderline useless compared to mypy and pylint
2022-10-09Remove deprecated pylint checksjvoisin
2022-10-09Get rid of a deprecated checkjvoisin
Nobody should be using Poppler < 0.46
2022-10-09Please pylintjvoisin
2022-08-28Simplify the typing annotationsjvoisin
2022-08-05Make use of cache to get binary pathsjvoisin
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-15Add support for HEIC filesjvoisin
Thanks to Maxime Morin ( https://www.maijin.fr/ ) for the patch.
2022-05-05Minor cleanupjvoisin
2022-03-29Please the lintersjvoisin
2022-03-28Fix the PDF versionjvoisin
This should prevent the testsuite from breaking, and marginally increase fingerprinting resistance.
2022-03-16Try to use modern rsvg functions when we canjvoisin
2021-12-26Please pylint by iterating on dict directly, instead of calling .keys()jvoisin
2021-12-19Increase audio processing robustnessjvoisin
2021-12-18Add a check for weird audio files, instead of crashingjvoisin
2021-12-14Make mat2 more robust wrt. weird audio filesjvoisin
2021-12-13Make libmat2 more robust against corrupted zip filesjvoisin
2021-12-13Increase a bit the robustness of mat2jvoisin
Those issues were found via https://github.com/google/atheris
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
2021-11-21Please a bit the CIjvoisin