• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jstedfast / MimeKit / 5.0.0.2397
0%

Build:
DEFAULT BRANCH: master
Ran 06 Oct 2026 10:40PM UTC
Jobs 1
Files 239
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Oct 2026 09:53PM UTC coverage: 95.628% (+0.1%) from 95.502%
5.0.0.2397

push

coveralls.net

jstedfast
Fix quadratic open-element tracking in HtmlToHtml and HtmlTextPreviewer

HtmlToHtml scanned its entire list of open elements on every token to
decide whether content was suppressed, and again on every end tag to find
the element it closed. HtmlTextPreviewer did the same for every end tag
and every <li>. A small malicious document with many unclosed tags
therefore took time quadratic in its size:

  100,000 x "<b>" + 100,000 x "</i>" (~700 KB) in HtmlToHtml: ~139 s

HtmlToHtml now uses a new internal HtmlTagContextStack<T>, which keeps a
count of open elements that suppress their content and chains open
elements by (case-insensitive) tag name. HtmlTextPreviewer uses a
doubly-linked open-element list chained by HtmlTagId. Every operation is
now O(1) and the same input converts in ~50 ms.

Behavior is unchanged: a differential test over 20,000 random tag-soup
inputs (with several callbacks that suppress content, delete tags and
request end-tag callbacks) produced byte-identical output before and
after the change.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

41123 of 43003 relevant lines covered (95.63%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5.0.0.2397.1 06 Oct 2026 10:40PM UTC 239
95.63
Source Files on build 5.0.0.2397
  • Tree
  • List 239
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 07c224be on github
  • Prev Build on master (#5.0.0.2396)
  • Next Build on master (#5.0.0.2398)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc