304b3b3910bb472d663baaa789970df55ceeb09e
I don't know what the root cause is exactly that made at least Mac OS X --enable-dbgutil JunitTest_forms_unoapi start to fail recently, but when nWidth is just 1 (which might be the root of the problem here, but could probably also legitimately be the case) and GetTextWidth returns -1 (which it probably is allowed to do), this would lead to an out-of-bounds OUString::operator[] access at > rtl::OUString::operator[] (this=0x118a04be0, index=-1) at ustring.hxx:421 > com::sun:⭐:i18n::BreakIterator_Unicode::getLineBreak (this=0x11986f6f8, Text=@0x118a04be0, nStartPos=-2, rLocale=@0x7fbd83821d98, nMinBreakPos=4, hOptions=@0x118a04620) at i18npool/source/breakiterator/breakiterator_unicode.cxx:429 > com::sun:⭐:i18n::BreakIteratorImpl::getLineBreak (this=0x1112d5c98, Text=@0x118a04be0, nStartPos=-1, rLocale=@0x7fbd83821d98, nMinBreakPos=4, hOptions=@0x118a04620, bOptions=@0x118a045f8) at i18npool/source/breakiterator/breakiteratorImpl.cxx:242 > OutputDevice::ImplGetTextLines (rLineInfo=@0x118a04bb0, nWidth=1, rStr=@0x118a04be0, nStyle=12560, _rLayout=@0x118a04db8) at vcl/source/outdev/text.cxx:527 > OutputDevice::ImplDrawText (this=0x7fbd8302d000, rTargetDevice=@0x7fbd8302d000, rRect=@0x118a05058, rOrigStr=@0x118a04f70, nStyle=12560, pVector=0x0, pDisplayText=0x0, _rLayout=@0x118a04db8) at vcl/source/outdev/text.cxx:1500 > OutputDevice::DrawText (this=0x7fbd8302d000, rRect=@0x118a05058, rOrigStr=@0x118a04f70, nStyle=12560, pVector=0x0, pDisplayText=0x0, _pTextLayout=0x0) at vcl/source/outdev/text.cxx:1754 > sfx2::TitledDockingWindow::Paint (this=0x7fbd8302d000, i_rArea=@0x118a051d0) at sfx2/source/dialog/titledockwin.cxx:218 Change-Id: I95c6027e86b9a608fe9eb05ffb83fb2316c175f2
…
…
…
…
…
…
…
…
…
…
…
Instructions to compile LO on Solaris with gcc Disclaimer ---------- This is still work in progress Compiling LO on Solaris with gcc is a work done by Lanedo ( www.lanedo.com ) Any inquiry could be sent to office-solaris@lanedo.com Prerequisites ------------- A working Oracle Solaris 11 installation Installing Dependancies ----------------------- sudo -s pkg install git make gcc-45 autoconf autogen automake-110 gnu-m4 perl -MCPAN -e 'install Archive::Zip::Archive' pkg install pkg:/system/header@0.5.11-0.175.0.0.0.2.1 pkg install pkg:/developer/gperf@3.0.3-0.175.0.0.0.2.537 pkg install pkg:/developer/parser/bison@2.3-0.175.0.0.0.2.537 pkg install pkg:/developer/lexer/flex@2.5.35-0.175.0.0.0.2.537 pkg install pkg:/developer/documentation-tool/doxygen@1.5.7.1-0.175.0.0.0.2.537 Compiling --------- CC="gcc" CXX="g++" ./autogen.sh --with-num-cpus=2 --with-max-jobs=4 --without-junit --disable-mozilla --with-system-curl --without-help --disable-cups --without-java --with-system-cairo --with-lang= --disable-gconf --enable-gio --disable-gnome-vfs --disable-gstreamer --without-fonts --with-system-dicts --disable-mozilla --without-system-mozilla --disable-xmlsec --with-system-openssl gmake
Description
Languages
C++
82.4%
Java
5.3%
Rich Text Format
2.3%
PostScript
1.9%
Python
1.9%
Other
5.7%