[Libreoffice-bugs] [Bug 108039] New: BASIC: Trying to create string too long segfaults
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue May 23 20:55:57 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=108039
Bug ID: 108039
Summary: BASIC: Trying to create string too long segfaults
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: mikekaganski at hotmail.com
Execute following macro:
Sub strOverflow
Dim s As String, i As Integer
s = "0"
For i=1 To 31
s = s & s
Next i
End Sub
This segfaults both on 32- and 64-bit LibreOffice when memory allocation is
unsuccessful (maximum string size is 2147483638 = 2^31 - 10). LibreOffice
crashes.
--
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/20170523/6649cdea/attachment.html>
More information about the Libreoffice-bugs
mailing list