https://bugs.freedesktop.org/show_bug.cgi?id=58473

          Priority: medium
            Bug ID: 58473
          Assignee: [email protected]
           Summary: crash in transliteration ...
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 4.0.0.0.beta1
         Component: Libreoffice
           Product: LibreOffice

It seems we over-optimised rtl_uString_alloc - which needs to always-alloc, and
not return a ref-counted pointer to the const/static internal empty string (to
avoid problems). People that alloc strings can usually cope with that.

proximate problem:

#0  com::sun::star::i18n::Transliteration_body::transliterate (this=0x9a6c250,
inStr="", startPos=0, nCount=0, offset=empty uno::Sequence)
    at
/ssd/opt/libreoffice/master/i18npool/source/transliteration/transliteration_body.cxx:144
#1  0xb1b59a55 in com::sun::star::i18n::TransliterationImpl::transliterate
(this=0x9b67ff8, inStr="", startPos=0, nCount=0, 
    offset=empty uno::Sequence) at
/ssd/opt/libreoffice/master/i18npool/source/transliteration/transliterationImpl.cxx:315
#2  0xae1269f4 in TextSearch::searchForward (this=0x9b958c8, searchStr="",
startPos=0, endPos=0)
    at /ssd/opt/libreoffice/master/i18npool/source/search/textsearch.cxx:200
#3  0xb6f9dfba in utl::TextSearch::SearchFrwrd (this=0x9c3a450, rStr="",
pStart=0xbfffd4ce, pEnde=0xbfffd4d0, pRes=0xbfffd514)
    at /ssd/opt/libreoffice/master/unotools/source/i18n/textsearch.cxx:223
#4  0xb0bfff8f in ScTable::SearchCell (this=0x8a9e550, rSearchItem=..., nCol=0,
nRow=1, rMark=..., rUndoStr="", pUndoDoc=0x0)
    at /ssd/opt/libreoffice/master/sc/source/core/data/table6.cxx:114
#5  0xb0c009ae in ScTable::Search (this=0x8a9e550, rSearchItem=...,
rCol=@0xbfffd5da: 0, rRow=@0xbfffd5dc: 0, rMark=..., rUndoStr="", pUndoDoc=
    0x0) at /ssd/opt/libreoffice/master/sc/source/core/data/table6.cxx:393

142                }
143            }
144            out[j] = 0;
145    
146            return OUString( pStr, SAL_NO_ACQUIRE );

writing the terminating zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to