Issue #1783 - Xcf file crashing gimp-console-2.10 ...
... (Invalid read reported by valgrind) In xcf_read_int8(), avoid calling g_input_stream_read_all() with data == NULL and count == 0, in which case it raises a CRITICAL and doesn't set bytes_read, which we proceed to use uninitialized. This can happen, e.g., when reading an empty parasite. (cherry picked from commit 6ebadea7)
Showing with 10 additions and 4 deletions