You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Restrict image formats when opening templates and imported profile images #157
store_embedded_image decodes base64 from an imported profile and checks probe.format != "PNG" only after Pillow has already tried all registered formats on the bytes.
Impact
Profiles are meant to be shareable, so limiting decoders to the formats the app actually writes narrows exposure to future Pillow decoder bugs. Not exploitable with the current Pillow.
Suggested fix
Pass formats=["PNG"] at line 77 and the formats the UI accepts (for example ["PNG", "BMP", "JPEG"]) at lines 47 and 117.
Acceptance criteria
All three Image.open calls pass an explicit formats list
How to run tests: make check (Git Bash) or tasks.bat lint, tasks.bat typecheck, tasks.bat test (cmd). Single test: python -m pytest tests/test_x.py::TestClass::test_name --no-cov
Related docs: CONTRIBUTING.md, docs/ARCHITECTURE.md
Filed by repo-audit/full-audit at 9968dc8. Severity: low. Effort: S. audit-key: quality|autoclicker/core/image_match.py|store_embedded_image
Activity