office-gobmx/basic
Julien Nabet 4a0b40f1be tdf#143081: fix Basic Replace() function crashes LO
0x00007f19c0aa6e57 in rtl::OUStringBuffer::append(char16_t const*, int) (this=0x7fff100d0748, str=0x6f6f46a u"晦饖香©", len=-1) at include/rtl/ustrbuf.hxx:659
0x00007f19c0c3c8a8 in SbRtl_Replace(StarBASIC*, SbxArray&, bool) (rPar=...) at basic/source/runtime/methods.cxx:1321

see bt here:
https://bugs.documentfoundation.org/attachment.cgi?id=173298

Calling xCharClass->toUpper may change words, eg: "Straße" becomes "Strasse"
so the length of the word increases.
In brief, we want to use the length of aSrcStr not aExpStr

Change-Id: Ia291d47a2021efc7dd9162ca5cc72b7940fdd71e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118202
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2021-07-01 08:37:49 +02:00
..
inc vcl: outdevmap.hxx -> rendercontext/ImplMapRes.hxx 2021-06-15 09:25:10 +02:00
qa Purge out rtl::math::setInf 2021-07-01 00:39:17 +02:00
source tdf#143081: fix Basic Replace() function crashes LO 2021-07-01 08:37:49 +02:00
util
AllLangMoTarget_sb.mk
CppunitTest_basic_macros.mk
CppunitTest_basic_scanner.mk
IwyuFilter_basic.yaml
Library_sb.mk
Makefile
Module_basic.mk
README.md

StarBASIC Interpreter

Contains the StarBASIC Interpreter

This implements a macro language that, when in VBA compatibility mode, is intended to be interoperable with Visual Basic for Applications, allowing people to run macros embedded in their documents.

See also

http://wiki.openoffice.org/wiki/Basic