Bug 161613 - Crash in debug build on SVG file with invalid attributes
Summary: Crash in debug build on SVG file with invalid attributes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2024-06-17 09:25 UTC by Regina Henschel
Modified: 2024-06-17 11:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG to be inserted or opened (517.43 KB, image/svg+xml)
2024-06-17 09:25 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2024-06-17 09:25:09 UTC
Created attachment 194778 [details]
SVG to be inserted or opened

In a debug build, open or insert the attached SVG file in Draw. It crashes.

The document has a lot of attributes 'stroke-width' and 'font-size' with negative values. Inkscape and Firefox ignore elements which have such invalid attributes. LibreOffice should do the same.
Comment 1 Xisco Faulí 2024-06-17 11:05:56 UTC
Reproduced in

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a298ba36047e17cf6a0f6b3d17ae40aed282f47b
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded