From 063717bbd69622a53b2ff6a44d27e471460287b2 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 21 Aug 2018 20:08:19 +0200 Subject: xml: increase allowed size of attribute names --- xml.c | 2 +- xml.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xml.c b/xml.c index 07dcc7b..0679c3b 100644 --- a/xml.c +++ b/xml.c @@ -389,7 +389,7 @@ xml_parse(XMLParser *x) x->xmltagend(x, x->tag, x->taglen, 1); break; } else if (taglen < sizeof(x->tag) - 1) - x->tag[taglen++] = c; + x->tag[taglen++] = c; /* NOTE: tag name truncation */ } } } else { diff --git a/xml.h b/xml.h index d3cfe21..192ec72 100644 --- a/xml.h +++ b/xml.h @@ -31,7 +31,7 @@ typedef struct xmlparser { /* current tag is in short form ? */ int isshorttag; /* current attribute name */ - char name[256]; + char name[1024]; /* data buffer used for tag data, cdata and attribute data */ char data[BUFSIZ]; } XMLParser; -- cgit v1.2.3