svg_loader: fix data parsing

Added an additional XML entity to be
omitted while parsing.

@Issue: https://github.com/thorvg/thorvg/issues/2273
This commit is contained in:
Mira Grudzinska 2024-05-21 20:53:58 +02:00 committed by Hermet Park
parent 9c5eafd74e
commit 1c66b5fa3d

View file

@ -25,9 +25,9 @@
#include "tvgSvgLoaderCommon.h" #include "tvgSvgLoaderCommon.h"
#define NUMBER_OF_XML_ENTITIES 8 #define NUMBER_OF_XML_ENTITIES 9
const char* const xmlEntity[] = {""", " ", "'", "&", "<", ">", "#", "'"}; const char* const xmlEntity[] = {"
", """, " ", "'", "&", "<", ">", "#", "'"};
const int xmlEntityLength[] = {6, 6, 6, 5, 4, 4, 6, 6}; const int xmlEntityLength[] = {5, 6, 6, 6, 5, 4, 4, 6, 6};
enum class SimpleXMLType enum class SimpleXMLType
{ {