Xcf file crashing gimp-console-2.10 (Invalid read reported by valgrind)
$ printf "gimp xcf file\0\0\0\0\01\0\0\0\01\0\0\0\0\0\0\0\x15\0\0\0\x28\0\0\0\xdgimp-comment\0\0\0\0\0\0\0\0\0" > short-gimp-comment.xcf
$ valgrind gimp-console-2.10 -sdf short-gimp-comment.xcf
...
(gimp-console-2.10:9928): GLib-GIO-CRITICAL **: 18:10:55.968: g_input_stream_read_all: assertion 'buffer != NULL' failed
==9928== Invalid read of size 1
==9928== at 0x543C65: gimp_image_parasite_validate (gimpimage.c:3547)
==9928== by 0x447A7F: xcf_load_image_props (xcf-load.c:855)
==9928== by 0x449818: xcf_load_image (xcf-load.c:231)
==9928== by 0x446959: xcf_load_stream (xcf.c:315)
==9928== by 0x446ACF: xcf_load_invoker (xcf.c:432)
==9928== by 0x4D021C: gimp_plug_in_procedure_execute (gimppluginprocedure.c:417)
==9928== by 0x4C51EF: gimp_procedure_execute (gimpprocedure.c:433)
==9928== by 0x4BEBC0: gimp_pdb_execute_procedure_by_name_args (gimppdb.c:322)
==9928== by 0x4BF012: gimp_pdb_execute_procedure_by_name (gimppdb.c:451)
==9928== by 0x5A8F45: file_open_image (file-open.c:211)
==9928== by 0x5A9E23: file_open_with_proc_and_display (file-open.c:516)
==9928== by 0x5AA60F: file_open_with_display (file-open.c:486)
==9928== by 0x5AA60F: file_open_from_command_line (file-open.c:699)
==9928== Address 0xffffffffffffffff is not stack'd, malloc'd or (recently) free'd
==9928==
gimp-console-2.10: fatal error: Segmentation fault
gimp-console-2.10: Gimp-Core-CRITICAL: gimp_item_get_ID: assertion 'GIMP_IS_ITEM (item)' failed
discovered using zzuf