https://bugs.documentfoundation.org/show_bug.cgi?id=163295
Bug ID: 163295
Summary: LibreOffice crashes when processing XML files
containing the string "pwi".
Product: LibreOffice
Version: 7.4.7.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: sdk
Assignee: [email protected]
Reporter: [email protected]
Description:
Whenever I try to convert an XML file to PDF using LibreOffice, the application
crashes if the string "pwi" appears anywhere in the XML file. This happens even
if the string is not part of the XML declaration but embedded somewhere else in
the document. The issue occurs consistently with any valid XML file containing
this specific string. I suspect there is an issue with how LibreOffice parses
this combination of characters in XML documents. Removing "pwi" prevents the
crash.
Steps to Reproduce:
1.Create an XML File with the following content "<?xmlpwi"
2. Call the command "soffice --nodefault --nofirststartwizard --nolockcheck
--nologo --norestore --convert-to pdf:writer_pdf_Export --outdir .
<<CREATED_FILE>>.xml"
3. File is not created no error is thrown
4. Create an XML File with the following content "<?xmlpwa"
5. Call the command "soffice --nodefault --nofirststartwizard --nolockcheck
--nologo --norestore --convert-to pdf:writer_pdf_Export --outdir .
<<CREATED_FILE>>.xml"
6. File is created
Actual Results:
LibreOffice crashes every time when processing the XML file with the string
"pwi".
Expected Results:
LibreOffice should process the XML file correctly and generate a PDF without
crashing.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Removing or replacing the string "pwi" resolves the issue, but this is not a
suitable workaround, as I cannot control the content of all XML files. This
issue may be linked to how the LibreOffice XML parser handles certain character
sequences.
--
You are receiving this mail because:
You are the assignee for the bug.