Gimp/app/file-data
Jacob Boerema 2a31678e9c app: fix #6436 *.gih grayscale export crashes GIMP
When we try to export a grayscale image with layers with negative offsets
to a GIH brush GIMP crashes without producing any crashlog.
Running in GDB showed us that there is heap corruption caused by incorrect
computation of buffer sizes because of the negative offsets.

In file_gih_image_to_pipe there is a comment that offsets are assumed
positive, but no checking is done whether that is correct.
Let's add some checks, set offset to 0 if negative and adjust width and
height accordingly.

(cherry picked from commit e2b1cc9476)
2021-11-08 17:11:52 -05:00
..
.gitignore
file-data-gbr.c app: fix undoing image parasite attach/detach to emit the right signals 2019-05-30 16:58:53 +02:00
file-data-gbr.h app: factor file_gbr_drawable_to_brush() out of file_gbr_image_to_brush() 2019-03-03 20:05:35 +01:00
file-data-gih.c app: fix #6436 *.gih grayscale export crashes GIMP 2021-11-08 17:11:52 -05:00
file-data-gih.h app, plug-ins: move file-gih-load from the file-gih plug-in to the core 2019-02-19 23:48:55 +01:00
file-data-pat.c app: fix undoing image parasite attach/detach to emit the right signals 2019-05-30 16:58:53 +02:00
file-data-pat.h
file-data.c app, plug-ins: move brush pipe saving from the file-gih plug-in to the core 2019-03-03 20:07:07 +01:00
file-data.h
Makefile.am app, plug-ins: move file-gih-load from the file-gih plug-in to the core 2019-02-19 23:48:55 +01:00