summaryrefslogtreecommitdiff
path: root/libmat2 (follow)
AgeCommit message (Collapse)Author
2018-09-01three minor spelling fixesDaniel Kahn Gillmor
2018-09-01Add archlinux to the CIjvoisin
2018-09-01Fix a minor formatting issuejvoisin
2018-09-01Logging cleanupdkg
2018-08-23Improve the detection of unsupported extensions in uppercasejvoisin
2018-08-23libmat2: images: fix handling of .JPG filesAntoine Tenart
Pixbuf only supports .jpeg files, not .jpg, so libmat2 looks for such an extension and converts it if necessary. As this check is case sensitive, processing .JPG files does not work. Fixes #47. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2018-07-21AbstractParser: Fix typosgeorg
2018-07-19Improve the code's documentationjvoisin
2018-07-19Minor simplification in how we're handling xml for office filesjvoisin
2018-07-15Add a check for a missed dependency in `./mat2 -c`jvoisin
2018-07-10Remove `print` from libmat, and use the `logging` module insteadjvoisin
This should close #28
2018-07-10Implement a check for dependencies in mat2jvoisin
Example use: ``` $ mat2 -c Dependencies required for MAT2 0.1.3: - Cairo: yes - Exiftool: yes - GdkPixbuf from PyGobject: yes - Mutagen: yes - Poppler from PyGobject: yes - PyGobject: yes ``` This should close #35
2018-07-09Make pylint even happierjvoisin
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