[xsd-users] bug in types.hxx line 337

Boris Kolpackov boris at codesynthesis.com
Wed Mar 14 16:33:09 EDT 2007


Hi Ray,

Ray Lischner <rlischner at proteus-technologies.com> writes:

> Line 337 of xsd/cxx/tree/types.hxx calls xercesc::Base64::encode
> to encode a base64_binary value. The result is stored in an
> auto_array object. The problem is that Base64::encode calls
> operator new to allocate the memory, and auto_array uses delete[]
> to free the memory. I ran a program under valgrind, which reported
> the mismatch.

I could verify this with valgrind on the test/cxx/tree/built-in test.
The fix can be obtained here:

http://codesynthesis.com/~boris/tmp/xsd-2.3.1-array-delete.patch


With this fix the test passes without any errors. Thanks for
tracking this down!


-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070314/d343751f/attachment.pgp


More information about the xsd-users mailing list