[Libreoffice-bugs] [Bug 102625] Formula editor breaks surrogate pairs

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 5 22:14:17 UTC 2020


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

Julien Nabet <serval2412 at yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |serval2412 at yahoo.fr

--- Comment #4 from Julien Nabet <serval2412 at yahoo.fr> ---
On pc Debian x86-64 with master sources updated today, I got a crash.

There's indeed a pb when dealing with surrogate.
See part of bt when typing space after having clicking on middle of 𝑛
character:
#0  SmParser::Parse(rtl::OUString const&) (this=0x3205db8, rBuffer="\xd835
\xdc5b") at starmath/source/parse.cxx:2381
#1  0x00007fffdc3981e3 in SmDocShell::Parse() (this=0x3205c20) at
starmath/source/document.cxx:222
#2  0x00007fffdc397e7c in SmDocShell::SetText(rtl::OUString const&)
(this=0x3205c20, rBuffer="\xd835 \xdc5b\n") at starmath/source/document.cxx:145
#3  0x00007fffdc3973c8 in SmDocShell::Execute(SfxRequest&) (this=0x3205c20,
rReq=...) at starmath/source/document.cxx:1034

There shouldn't be an extra space here: "\xd835 \xdc5b"

The crash is triggered by
https://cgit.freedesktop.org/libreoffice/core/commit/?id=11b57129b53e1e2d71a5f969e2417226b4e2ddd9
but it just makes the bug worse, it didn't create it.

I don't understand how come typing space may indeed insert a space between a
pair of surrogates in rBuffer.

-- 
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/20200505/b9c115bc/attachment.htm>


More information about the Libreoffice-bugs mailing list