[Libreoffice-bugs] [Bug 101083] Insert SVG causes LibreOffice to hang, consuming 100% cpu

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 3 09:47:28 UTC 2021


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

--- Comment #17 from Armin Le Grand <Armin.Le.Grand at me.com> ---
Made a short check what's going on. Generic sys-dep renderers would be ideal
(and were always the target after cont'ing the changes) but would not help too
much here.
The PatternFillPrimitive2D already does a decent, discrete (res- and target
dependent) buffered decomposition. Did that once for a similar case - the
pattern is tran'd to a bitmap and embedded in a stack of matrices to reflect
the fill (done based on discrete pixel size of pattern back-transformed to have
no gaps in pattern :) important).
In this case the range and size of the pattern derived/imported from the SVG
lead to creation of 2mio sub-primitives - argh! Either there is an error in
this file or we need to limit amount of decomp parts anyways due to mem overrun
attacks...
Just my 2ct

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210203/e2d36614/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list