https://bugs.documentfoundation.org/show_bug.cgi?id=118073
Bug ID: 118073
Summary: LibreOffice Basic freezes when line ends with "0."
Product: LibreOffice
Version: 6.0.4.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
LibreOffice Basic cannot handle a line ending with "0.".
If you enter this text in the editor, it will freeze as soon as it has to parse
the text you have entered (e.g. if you try to run the macro, or save the file).
Pre-existing documents that have macros like this will free LibreOffice when
you attempt to "Organize Macros", when it parses the text to extract runable
Sub names, or when you try to save the file. This means it isn't the editor,
specifically, that has the problem, but the parsing of the code.
Note that "1." is fine, "0" is fine, "0.1" is fine. It is specifically "0."
that causes the problem. Appending a comment, like "0.'comment" does cause the
freeze.
Steps to Reproduce:
1. Start new LibreOffice Calc document
2. Create a new LibreOffice Basic macro (Tools/Macros/Organize
Macros/LibreOffice Basic, select the document (eg "Untitled1") in the tree,
click New to create a module, accept the default "Module1" name. Editor opens.
3. Under "Sub Main", type "a = 0."
4. Click the "run" button (or, I think, any other way to attempt to run the
macro).
Actual Results:
LibreOffice freezes, using a full cpu core. Never recovers and must be killed.
Expected Results:
Macro runs and LibreOffice continues to exist.
Reproducible: Always
User Profile Reset: Yes
OpenGL enabled: Yes
Additional Info:
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/63.0.3239.132 Safari/537.36
--
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