[xsd-users] xsd::cxx::tree::list::init() in 2.3.1 can't handle empty strings

Boris Kolpackov boris at codesynthesis.com
Sat Jun 23 13:03:15 EDT 2007


Hi Ray,

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

> There is a bug in the library of release 2.3.1. An empty <list> causes
> list::init to take the empty string and try to initialize one element
> of the list with that empty string. I was going to supply a patch, but
> then I realized that I'm not entirely sure what is correct. An empty
> string is easy. What if the string contains a single space?

The spaces are collapsed which means a string with a single space
results in an empty list. I have made a patch for 2.3.1 that should
fix this bug:

http://www.codesynthesis.com/~boris/tmp/xsd-2.3.1-list-init.patch

Thanks for reporting this!


-boris




More information about the xsd-users mailing list