https://bugs.documentfoundation.org/show_bug.cgi?id=111313
--- Comment #7 from Xisco FaulĂ <[email protected]> ---
@Stephan, it seems this change avoids the crash:
--- a/sal/rtl/ustrbuf.cxx
+++ b/sal/rtl/ustrbuf.cxx
@@ -154,7 +154,7 @@ void SAL_CALL rtl_uStringbuffer_insert( rtl_uString **
This,
if( len == 1 )
/* optimized for 1 character */
pBuf[offset] = *str;
- else
+ else if( len > 1 )
memcpy( pBuf + offset, str, len * sizeof(sal_Unicode) );
}
(*This)->length = nOldLen + len;
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs