Re: [xml] Potential problem with 2.7.4



On Tue, Sep 15, 2009 at 07:43:54PM +0200, Daniel Veillard wrote:
  Some application don't deliver sufficient data at start of parsing
conflicting with the fix I made for 

  https://bugzilla.gnome.org/show_bug.cgi?id=566012 

I commited a fix which solves the problem while preserving the EBCDIC
parsing fix:

http://git.gnome.org/cgit/libxml2/commit/?id=9d3d141c412baa5c713ad3df48f1a4d179e07b05

+     * than just the first line, unless the amount of data is really
+     * too small to hold "<?xml version="1.0" encoding="foo"
      */
+    if ((ctxt->input->end - ctxt->input->cur) < 35) {
+       GROW;
+    }

Can't there be another similar problem later in the code when that GROW
still doesn't get enough to hold "<?xml version="1.0" encoding="foo" ?

Mike



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]