Pixbuf tries to open PNG decompression bomb if PIL failed
Please first check if another issue has been opened for your problem
Versions
- OS: Linux
- Gajim version: 1.5.3
- GTK version: 3.24.34
- Python-nbxmpp version: 3.2.5
Steps to reproduce the problem
- Enable file preview
- Send PNG decompression bomb
Expected behavior
Pixbuf doesn't try to load a png decompression bomb if PIL already reported this.
Actual behavior
2022-11-08 11:43:39 (W) gajim.c.preview_helpers making pil thumbnail failed: Image size (50625000000 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.
2022-11-08 11:43:39 (W) gajim.c.preview_helpers fallback to pixbuf
2022-11-08 11:45:18 (W) gajim.c.preview_helpers Loading pixbuf failed: gdk-pixbuf-error-quark: Insufficient memory to store a 225000 by 225000 image; try exiting some applications to reduce memory usage (1)