summaryrefslogtreecommitdiff
path: root/libmat2 (follow)
AgeCommit message (Collapse)Author
2018-07-08Fix some pep8 issues spotted by pyflakesjvoisin
2018-07-08Achieve 100% coverage!jvoisin
2018-07-08Bump coverage for office files and fix some related crashesjvoisin
2018-07-08Silence a mypy's stupid warningjvoisin
2018-07-08Add defusedxml as an (optional) way to prevent XML-based attacksjvoisin
Those attacks are DoS-only.
2018-07-08Remove a leftover printjvoisin
2018-07-08Bump coverage for torrent handlingjvoisin
2018-07-08Simplify how torrent files are handledjvoisin
- Rework the testsuite wrt. torrent - fail at parser's instantiation on corrupted torrent, instead of during `get_meta` or `remove_all` call
2018-07-07Bump the coverage for pdfjvoisin
2018-07-07Fix a mistake in office file revisions handlingjvoisin
2018-07-06Simplify BMP handlingjvoisin
2018-07-06Add support for .txt filesjvoisin
2018-07-02Improve a bit the formatting of the code thanks to pyflakes3jvoisin
2018-07-01Remove docx revisionsjvoisin
2018-07-01MAT2 is now cleaning revisions from odt files!jvoisin
2018-07-01Remove the thumbnails from libreoffice filesjvoisin
2018-06-27Massively simplify how we're cleaning office filesjvoisin
2018-06-24Ensure Poppler's minimal versionjvoisin
We're using methods that aren't available in Poppler below 0.46, so we're checking for this upon import. This commit is based on ideas from @LogicalDash ♥
2018-06-22Split the testsuite a bit and add more testsjvoisin
2018-06-22Improve reliability against corrupted image filesjvoisin
2018-06-21Improve the reliability of the office parserjvoisin
2018-06-21Fix some linter warningsjvoisin
2018-06-21Refactor how offices files are handledjvoisin
- xml files are no longer considered harmless - Factorization of the `remove_all` method for office files - Explicit whitelist are used - Blacklist are used to skip files completely - Non-blacklisted files are _still cleaned_ - Unsupported files are still triggering an error
2018-06-21Minor simplification of the office-related codejvoisin
2018-06-12libmat2: harmless: add the text/xml mime typeAntoine Tenart
Fedora defines the 'text/xml' mime type for xml files. Adds this mime type to the harmless parser. Fixes #36. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2018-06-12libmat2: audio: add the audio/x-flac mime typeAntoine Tenart
The FLAC parser looks for the 'audio/flac' mime type, but Fedora defines 'audio/x-flac' in /etc/mime.types for FLAC files. Add this mime type to the audio parser. Fixes #36. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2018-06-10Minor code simplificationjvoisin
2018-06-10Make the parsing of office format's metadata more robustjvoisin
2018-06-10Add some tests for non-supported embedded fileformatsjvoisin
2018-06-10Improve a bit our coverage wrt. torrent files handlingjvoisin
2018-06-10Improve a bit the performances wrt. image's metadata displayjvoisin
2018-06-10Bump a bit the coveragejvoisin
2018-06-10Fix and add a test for explicitly non-supported formatsjvoisin
2018-06-10Improve a bit parsers autoloadingjvoisin
2018-06-08Speed up a bit the processing of get_meta for images with a "regular" namejvoisin
2018-06-08Improve the code to handle problematic filenamesjvoisin
2018-06-06Prevent exiftool-based parameter-injectionjvoisin
2018-06-04Sort the output of `mat2 -l`jvoisin
2018-06-04Add more typing and use mypy in the CIjvoisin
2018-06-04Import the dynamic import systemjvoisin
The dynamic import should now work when MAT2 is installed system-wide, either via the distribution's packaging system, or via pip.
2018-06-04Make pyflakes happierjvoisin
2018-06-04Improve a bit the typing, againtotallylegit
2018-06-04Improve a return type annotationtotallylegit
2018-05-18Rename some files to simplify packagingjvoisin
- the `src` folder is now `libmat2` - the `main.py` script is now `mat2.py`
2018-03-19Remove some useless filesjvoisin
2018-03-18Improve the testsuitejvoisin