[Users] [Bug 4504] New: HTML rendering causes hang, fix included

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Wed Jul 14 04:25:28 CEST 2021


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4504

            Bug ID: 4504
           Summary: HTML rendering causes hang, fix included
           Product: Claws Mail
           Version: 3.17.8
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Plugins/LiteHTML Viewer
          Assignee: users at lists.claws-mail.org
          Reporter: fmuelle at gmail.com

Created attachment 2223
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2223&action=edit
sample email causing problems, trace and patch

100% utilization on certain emails when HTML rendering w/ litehtml viewer,
track back and quick and dirty patch attached, confirmed to work with attached
sample email.

Problem in a nutshell: max_width is negative, causes inifinite recursive calls
via 4 calls. Fix: return 0 in method below when max_width is negative.

#73 0x00007f73f4329a0f in litehtml::html_tag::render_box(int, int, int, bool)
(this=<optimized out>, x=0, y=0, max_width=-1, second_pass=false) at
html_tag.cpp:4026

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


More information about the Users mailing list