After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 554124 - xmlStringDecodeEntities end loop on >
xmlStringDecodeEntities end loop on >
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
2.7.1
Other Linux
: Normal blocker
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-28 00:42 UTC by Bruno Coudoin
Modified: 2009-08-10 12:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This is a minimal test case showing evidence of the bug. (579 bytes, text/plain)
2008-09-28 00:44 UTC, Bruno Coudoin
Details

Description Bruno Coudoin 2008-09-28 00:42:14 UTC
When GCompris uses libxml2 2.7.1 it loops indefinitly in the xmlStringDecodeEntities if we pass it an >

This bug was first tracked on the OLPC project under:
http://dev.laptop.org/ticket/8641
Comment 1 Bruno Coudoin 2008-09-28 00:44:54 UTC
Created attachment 119506 [details]
This is a minimal test case showing evidence of the bug.

This code worksfine on older version of libxml2. Perhaps it's not a valid use but please tell me what I am doing wrong if it's not a libxml2 bug.
Comment 2 C. Scott Ananian 2008-09-28 14:32:28 UTC
Additional information: works in libxml2.i386 0:2.6.32-3.fc9/libxml2-python.i386 0:2.6.32-3.fc9; breaks in libxml2.i386 0:2.7.1-1.fc9 / libxml2-python.i386 0:2.7.1-1.fc9. 
Comment 3 Daniel Veillard 2009-08-10 12:28:37 UTC
I can't reproduce with problem with the current version (2.7.3 - git)

paphio:~/libxml2 -> make tst
gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz
tst.c:13: warning: function declaration isn’t a prototype
tst.c: In function ‘main’:
tst.c:14: warning: initialization discards qualifiers from pointer target type
tst.c:19: warning: ISO C90 forbids mixed declarations and code
paphio:~/libxml2 -> ./tst 
reactivate_newline IN  >
reactivate_newline OUT >
paphio:~/libxml2 -> valgrind ./tst 
reactivate_newline IN  >
reactivate_newline OUT >
paphio:~/libxml2 -> 

  I assume it was a temporary problem

Daniel