Xcf file crashing gimp-console-2.10 (valgrind reports Invalid read)
$ printf "gimp xcf v012\0\0\0\0\2\0\0\0\2\0\0\0\2\0\0\0\2\0\0\0\x12\0\0\0\0" > indexed-u16.xcf
$ valgrind gimp-console-2.10 -sdf indexed-u16.xcf
...
gimp-console-2.10: Gimp-Core-CRITICAL: gimp_image_new: assertion 'base_type != GIMP_INDEXED || precision == GIMP_PRECISION_U8_GAMMA' failed
gimp-console-2.10: Gimp-Core-CRITICAL: gimp_image_undo_disable: assertion 'GIMP_IS_IMAGE (image)' failed
(gimp-console-2.10:5831): GLib-GObject-CRITICAL **: 13:25:39.966: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != NULL' failed
==5831== Invalid read of size 8
==5831== at 0x447BE0: xcf_load_image_props (xcf-load.c:790)
==5831== by 0x449828: xcf_load_image (xcf-load.c:231)
==5831== by 0x446969: xcf_load_stream (xcf.c:315)
==5831== by 0x446ADF: xcf_load_invoker (xcf.c:432)
==5831== by 0x4D016C: gimp_plug_in_procedure_execute (gimppluginprocedure.c:417)
==5831== by 0x4C513F: gimp_procedure_execute (gimpprocedure.c:433)
==5831== by 0x4BEB10: gimp_pdb_execute_procedure_by_name_args (gimppdb.c:322)
==5831== by 0x4BEF62: gimp_pdb_execute_procedure_by_name (gimppdb.c:451)
==5831== by 0x5A8E45: file_open_image (file-open.c:211)
==5831== by 0x5A9D23: file_open_with_proc_and_display (file-open.c:516)
==5831== by 0x5AA50F: file_open_with_display (file-open.c:486)
==5831== by 0x5AA50F: file_open_from_command_line (file-open.c:699)
==5831== by 0x44438B: app_run (app.c:411)
==5831== Address 0x138 is not stack'd, malloc'd or (recently) free'd
==5831==
gimp-console-2.10: fatal error: Segmentation fault