From 7472a87268f8fd188f7455b0b2bab026c2a8d0b2 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Tue, 21 May 2024 20:53:58 +0200 Subject: [PATCH] svg_loader: fix data parsing Added an additional XML entity to be omitted while parsing. @Issue: https://github.com/thorvg/thorvg/issues/2273 --- src/loaders/svg/tvgXmlParser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/loaders/svg/tvgXmlParser.h b/src/loaders/svg/tvgXmlParser.h index 30ca23b5..4151fbcd 100644 --- a/src/loaders/svg/tvgXmlParser.h +++ b/src/loaders/svg/tvgXmlParser.h @@ -25,9 +25,9 @@ #include "tvgSvgLoaderCommon.h" -#define NUMBER_OF_XML_ENTITIES 8 -const char* const xmlEntity[] = {""", " ", "'", "&", "<", ">", "#", "'"}; -const int xmlEntityLength[] = {6, 6, 6, 5, 4, 4, 6, 6}; +#define NUMBER_OF_XML_ENTITIES 9 +const char* const xmlEntity[] = {" ", """, " ", "'", "&", "<", ">", "#", "'"}; +const int xmlEntityLength[] = {5, 6, 6, 6, 5, 4, 4, 6, 6}; enum class SimpleXMLType {