legacy-imlib2/src
NRK 3e8c01bef6 PNG saver: avoid double-free on write errors
png_write_end may trigger a write error which sets off longjmp - which
then goes ahead and tries to free `misc.data` again. move the
png_write_end call before `quit` label to avoid this.

to reproduce, build scrot and imlib2 with ASan and then try to save a
screenshot to /dev/full (`scrot -o /dev/full`).
2024-01-01 17:37:53 +01:00
..
bin imlib2_grab, imlib2_view: Unset context colormap 2023-09-21 06:45:42 +02:00
lib x11_grab: Remove some obsolete code 2023-09-30 21:41:27 +02:00
modules PNG saver: avoid double-free on write errors 2024-01-01 17:37:53 +01:00
Makefile.am Only set MAINTAINERCLEANFILES in top-level Makefile.am 2021-11-29 17:37:20 +01:00