gimp/app/xcf
Ell a0a62656d2 Issue #1792 - Xcf file crashing gimp-console-2.10 ...
... (valgrind reports Invalid read)

Add gimp_babl_is_valid(), which takes a GimpImageBaseType and a
GimpPrecision, and determines whether the image-type/precision
combination is valid.  Use this function to validate that loaded
XCFs use a valid type/precision combination, before trying to
create the image.  Otherwise, we get a CRITICAL, and eventually a
segfault, when the combination is invalid.

Use the same function to validate the arguments of
gimp_image_new().
2018-07-06 13:06:46 -04:00
..
.gitignore Added .gitignore files generated with git svn create-ignore. 2009-01-31 11:37:44 +00:00
Makefile.am app: in xcf-load, avoid writing buffer data for empty tiles 2017-10-04 06:51:34 -04:00
xcf-load.c Issue #1792 - Xcf file crashing gimp-console-2.10 ... 2018-07-06 13:06:46 -04:00
xcf-load.h Change licence to GPLv3 (and to LGPLv3 for libgimp). 2009-01-17 22:28:01 +00:00
xcf-private.h app: limit allowable tile data size in XCFs 2017-07-28 16:51:08 -04:00
xcf-read.c Issue #1783 - Xcf file crashing gimp-console-2.10 ... 2018-07-05 20:38:11 -04:00
xcf-read.h app: add code to read/write XCF tile data as big-endian 2017-09-16 19:03:20 +02:00
xcf-save.c Bug 794996 - Misc. typo fixes in comments in app/ 2018-04-08 21:25:56 +02:00
xcf-save.h app: move the XCF version logic to gimpimage.[ch] 2014-09-27 20:38:43 +02:00
xcf-seek.c app: replace all g_assert() by the newly added gimp_assert() 2018-02-11 22:23:10 +01:00
xcf-seek.h Bug 731390 - XCF files have a max size of 4G 2017-03-23 11:44:41 +01:00
xcf-utils.c app: in xcf-load, avoid writing buffer data for empty tiles 2017-10-04 06:51:34 -04:00
xcf-utils.h app: in xcf-load, avoid writing buffer data for empty tiles 2017-10-04 06:51:34 -04:00
xcf-write.c app: avoid CRITICAL when writing 0-length data to XCF 2018-07-05 22:47:45 -04:00
xcf-write.h app: add code to read/write XCF tile data as big-endian 2017-09-16 19:03:20 +02:00
xcf.c Issue #1291 - Non-intrusive warning when saved XCF version... 2018-06-06 23:08:33 +02:00
xcf.h app: factor out xcf_load_stream() and xcf_save_stream() 2016-09-18 20:19:42 +02:00