svg: fixed invalid memory access

Added "Filter" and "GaussianBlur" to the list of node type strings
to ensure the array fully covers the SvgNodeType enum values.
This commit is contained in:
Hermet Park 2025-04-18 13:18:22 +09:00 committed by Hermet Park
parent af7fb159d1
commit 7feb43201b

View file

@ -255,6 +255,8 @@ const char* xmlNodeTypeToString(TVG_UNUSED SvgNodeType type)
"ClipPath", "ClipPath",
"Mask", "Mask",
"Symbol", "Symbol",
"Filter",
"GaussianBlur",
"Unknown", "Unknown",
}; };
return TYPE_NAMES[(int) type]; return TYPE_NAMES[(int) type];