mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
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:
parent
af7fb159d1
commit
7feb43201b
1 changed files with 2 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Reference in a new issue