[xml] Caracter (0x0b) makes libxml do an infinite loop.

Date view Thread view Subject view Author view

From: Marc Sanfacon (sanm@copernic.com)
Date: Mon Oct 30 2000 - 16:52:44 EST


Hi there,
        when parsing a html file from the net, libxml entered an infinite
loop. After tracking down the problem, it seemed that it didn't like the
0x0B caracter in a script definition. I managed to reproduce the bug in a
small test, that is attached.

        I also fixed it by modifying parserInternals.h at line: 41

#define IS_CHAR(c) \
    (((c) == 0x09) || ((c) == 0x0A) || ((c) == 0x0B) || ((c) == 0x0D) ||
\
     (((c) >= 0x20) && ((c) <= 0xD7FF)) || \
     (((c) >= 0xE000) && ((c) <= 0xFFFD)) || \
     (((c) >= 0x10000) && ((c) <= 0x10FFFF)))

I added 0x0B as a CHAR. Still can't figure what is this caracter though.
May be it should simply be ignored.

Regards,
Marc.
 
---------------------------------------------------------------------
 "Better the pride that resides, in a citizen of the world.
  Than the pride that divides, when a colorful rag is
  unfurled." Neil Peart
---------------------------------------------------------------------
Marc Sanfacon, Software developer Copernic.com
e-mail: msanfacon@copernic.com R&D Group
Tel : (418) 527-0528 ext 1212


----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 30 2000 - 17:43:28 EST