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

            Bug ID: 149198
           Summary: Crash on DOCX save
           Product: LibreOffice
           Version: 7.2.1.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Document crashed during save

Steps to Reproduce:
1. Open attached doc
2. Save it back (or with a new filename)


Actual Results:
Crash:


Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:
Backtrace:

mswordlo.dll!std::_Narrow_char_traits<char,int>::length(const char * const
_First) Line 401
mswordlo.dll!std::basic_string_view<char,std::char_traits<char>>::basic_string_view<char,std::char_traits<char>>(const
char * const _Ntcts) Line 1257
mswordlo.dll!DocxAttributeOutput::WriteCollectedRunProperties() Line 3134
mswordlo.dll!DocxAttributeOutput::EndRunProperties(const SwRedlineData *
pRedlineData) Line 3175

It seems this is reproducible only in Windows.
Version 7.0.2.2 and below are not affected
Version 7.2.1.2 and above (including master) are crashing.

It seems that story begins since (need to bbsect to prove that):

 commit af16aa625682b649e8843237652b9246d519cbae
 Author: Stephan Bergmann <[email protected]>
 Date:   Thu May 13 11:57:17 2021 +0200

    Improve loplugin:stringview



In debugger i see that in DocxAttributeOutput::WriteCollectedRunProperties()
comparison std::string_view("auto") != pVal when pVal=nullptr does crash in
windows stdlib.

I suppose that other similar comparisons can be affected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to