mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-12 09:17:37 +03:00
0df3bc3f28
* 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
24 lines
493 B
Plaintext
24 lines
493 B
Plaintext
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
|