problem with assert statement in ustring.hxx
Lubos Lunak
l.lunak at suse.cz
Thu Feb 21 00:30:22 PST 2013
On Thursday 21 of February 2013, Markus Mohrhard wrote:
> Hey,
>
> I'm currently running the calc files throough the automatic import
> test and the first XLSX file that crashed was novell#349591.
>
> THe problem there is the assert statement in ustring.hxx:232 together
> with the vmldrawing.cxx:59.
>
> Is it correct that we can't handle \0 in a string literal or is the
> assert statement wrong?
ustring.hxx:189 (i.e. doxygen docs for the function) :
If there are any embedded \0's in the string literal, the result is
undefined.
Use the overload that explicitly accepts length.
--
Lubos Lunak
l.lunak at suse.cz
More information about the LibreOffice
mailing list