msxml3/schema: Null pointer for schema uri should be treated as empty

Nikolay Sivov nsivov at codeweavers.com
Wed Feb 16 16:50:24 CST 2011


Spotted in valgrind log as invalid read - a buffer passed to libxml2 was 
allocated as zero length heap block, after some testing it showed up 
that null uri acts the same as empty uri.

I will add more tests for all places we're using xmlChar_from_wchar() to 
see if we could change it to return empty xmlChar string instead of 
pointer to zero length block in case of null input.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Null-pointer-for-schema-uri-should-be-treated-as-emp.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110217/f175063b/attachment.txt>


More information about the wine-patches mailing list