|
|
slightly reduce stack size for entities - sfeed - RSS and Atom parser |
|
|
 |
git clone git://git.codemadness.org/sfeed (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit ebd7175e56141e8e8816b1b27f1abc773818b6aa |
|
|
 |
parent eb8d6cf63815bff6697ebc7ae1b83f998b6eab53 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Fri, 14 Apr 2023 19:11:03 +0200 |
|
|
|
|
|
|
|
slightly reduce stack size for entities |
|
|
|
|
|
|
|
A numeric entity could be 5 bytes, so use a round number of 8 bytes. |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M sfeed_opml_import.c | 2 +- |
|
|
|
M sfeed_web.c | 2 +- |
|
|
|
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-) |
|
|
|
--- |
|
|
 |
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c |
|
|
|
@@ -70,7 +70,7 @@ static void |
|
|
|
xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl, |
|
|
|
const char *v, size_t vl) |
|
|
|
{ |
|
|
|
- char buf[16]; |
|
|
|
+ char buf[8]; |
|
|
|
int len; |
|
|
|
|
|
|
|
if ((len = xml_entitytostr(v, buf, sizeof(buf))) > 0) |
|
|
 |
diff --git a/sfeed_web.c b/sfeed_web.c |
|
|
|
@@ -103,7 +103,7 @@ static void |
|
|
|
xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *a, size_t al, |
|
|
|
const char *v, size_t vl) |
|
|
|
{ |
|
|
|
- char buf[16]; |
|
|
|
+ char buf[8]; |
|
|
|
int len; |
|
|
|
|
|
|
|
if (!ishrefattr && !istypeattr) |
|