Branch
Hash :
0161e638
Author :
Date :
2008-08-28T15:36:32
completely different fix for the recursion detection based on entity * parser.c include/libxml/parser.h: completely different fix for the recursion detection based on entity density, big cleanups in the entity parsing code too * result/*.sax*: the parser should not ask for used defined versions of the predefined entities * testrecurse.c: automatic test for entity recursion checks * Makefile.am: added testrecurse * test/recurse/lol* test/recurse/good*: a first set of tests for the recursion Daniel svn path=/trunk/; revision=3783
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, , )
SAX.entityDecl(test1, 1, (null), (null), test 1)
SAX.getEntity(test1)
SAX.entityDecl(test2, 1, (null), (null), test 2)
SAX.getEntity(test2)
SAX.externalSubset(doc, , )
SAX.startElement(doc)
SAX.characters(
, 4)
SAX.startElement(Content)
SAX.characters(Reten, 5)
SAX.characters(ç, 2)
SAX.characters(ã, 2)
SAX.characters(o, 1)
SAX.endElement(Content)
SAX.characters(
, 4)
SAX.startElement(Content)
SAX.characters(<, 1)
SAX.characters(>, 1)
SAX.endElement(Content)
SAX.characters(
, 4)
SAX.startElement(Content)
SAX.getEntity(test1)
SAX.characters(test 1, 6)
SAX.reference(test1)
SAX.getEntity(test2)
SAX.characters(test 2, 6)
SAX.reference(test2)
SAX.endElement(Content)
SAX.characters(
, 1)
SAX.endElement(doc)
SAX.endDocument()