Geotrek-admin
Geotrek-admin copied to clipboard
Prevent Pillow Decompressed Data Too Large Error from interrupting Parsers
We want to catch this error :
https://github.com/python-pillow/Pillow/blob/e39ee95f56d9c385065ed2963e8144d0826bb13e/src/PIL/PngImagePlugin.py#L139
Description
Related Issue
Checklist
- [x] I have followed the guidelines in our Contributing document
- [x] My code respects the Definition of done available in the Development section of the documentation
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [x] New and existing unit tests pass locally with my changes
- [x] I added an entry in the changelog file
- [ ] My commits are all using prefix convention (emoji + tag name) and references associated issues
- [x] I added a label to the PR corresponding to the perimeter of my contribution
- [ ] The title of my PR mentionned the issue associated