Re: [xml] Patch for xinclude bug 633166

On Sun, May 27, 2012 at 12:40:51PM +0400, Vitaly Ostanin wrote:

There are quite a long-standing problem in the code xinclude.c,
described in libxml2 bugzilla:

When you xinclude a text file, reading portions (by 4000 bytes) of the
buffer incorrectly handled the situation when the end comes across
portions of the bytes in a multibyte character.

I enclose a patch (also attached to the bugzilla bug report).

Please review the patch.

  Looks reasonable, I had to tweak it a bit for 2.9.0 and
follwing existing coding practice but that looks like the right thing to
do. Thanks a lot for the patch :-) pushed upstream !


Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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