[libxml2] Extend testlimits
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Extend testlimits
- Date: Fri, 3 Aug 2012 04:07:14 +0000 (UTC)
commit 747c2c1083f1e226a9707112bbdfca21def7ac3d
Author: Daniel Veillard <veillard redhat com>
Date: Thu Jul 19 20:36:43 2012 +0800
Extend testlimits
testlimits.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/testlimits.c b/testlimits.c
index 5335117..1cebd3e 100644
--- a/testlimits.c
+++ b/testlimits.c
@@ -60,6 +60,7 @@ static struct hugeTest hugeTests[] = {
{ "Huge text node", "huge:textNode", "<foo>", "</foo>" },
{ "Huge attribute node", "huge:attrNode", "<foo bar='", "'/>" },
{ "Huge comment node", "huge:commentNode", "<foo><!--", "--></foo>" },
+ { "Huge PI node", "huge:piNode", "<foo><?bar ", "?></foo>" },
};
static const char *current;
@@ -1213,6 +1214,10 @@ static limitDesc limitDescriptions[] = {
{"huge:commentNode", XML_MAX_TEXT_LENGTH - CHUNK, 0, 0},
{"huge:commentNode", XML_MAX_TEXT_LENGTH + CHUNK, 0, 1},
{"huge:commentNode", XML_MAX_TEXT_LENGTH + CHUNK, XML_PARSE_HUGE, 0},
+ /* max lenght of a PI node */
+ {"huge:piNode", XML_MAX_TEXT_LENGTH - CHUNK, 0, 0},
+ {"huge:piNode", XML_MAX_TEXT_LENGTH + CHUNK, 0, 1},
+ {"huge:piNode", XML_MAX_TEXT_LENGTH + CHUNK, XML_PARSE_HUGE, 0},
};
typedef struct testDesc testDesc;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]