[Libreoffice-bugs] [Bug 111313] Crashed in Calc Macro (Basic)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Apr 5 17:59:44 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=111313

--- Comment #7 from Xisco FaulĂ­ <xiscofauli at libreoffice.org> ---
@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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180405/418dbf47/attachment.html>


More information about the Libreoffice-bugs mailing list