From d320b85115967b60abe5703de63d6559c9ecccbf Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 28 Oct 2025 12:59:45 +0100 Subject: [PATCH] app: also check for an empty name. I'm looking at #14014. It's probably not the problem either, especially as gimp_parasite_new() would return a NULL parasite anyway with an empty name. But better be thorough and output a sensible error as soon as possible when loading a XCF. --- app/xcf/xcf-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c index cb2c87561f..bd853bc607 100644 --- a/app/xcf/xcf-load.c +++ b/app/xcf/xcf-load.c @@ -4782,7 +4782,7 @@ xcf_load_parasite (XcfInfo *info) return NULL; } - if (!name) + if (! name || strlen (name) == 0) { g_printerr ("Parasite has no name! Possibly corrupt XCF file.\n"); return NULL;