Branch
Hash :
0df3bc3f
Author :
Date :
2004-06-08T12:03:41
fixed a serious problem when substituing entities using the Reader, the * parser.c xmlreader.c include/libxml/parser.h: fixed a serious problem when substituing entities using the Reader, the entities content might be freed and if rereferenced would crash * Makefile.am test/* result/*: added a new test case and a new test operation for the reader with substitution of entities. Daniel
0 1 rec 0 0
1 14 #text 0 1
1 1 eg 0 0
2 4 #cdata-section 0 1 <!ENTITY % pub "Éditions Gallimard" >
<!ENTITY rights "All rights reserved" >
<!ENTITY book "La Peste: Albert Camus,
© 1947 %pub;. &rights;" >
1 15 eg 0 0
1 3 #text 0 1
then the replacement text for the entity "
1 1 code 0 0
2 3 #text 0 1 book
1 15 code 0 0
1 3 #text 0 1 " is:
1 1 eg 0 0
2 3 #text 0 1 La Peste: Albert Camus,
© 1947 Éditions Gallimard. &rights;
1 15 eg 0 0
1 14 #text 0 1
0 15 rec 0 0