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

neomutt / neomutt / 28349515133
43%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 04:56AM UTC
Jobs 1
Files 267
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

27 Jun 2026 11:33AM UTC coverage: 42.828% (-0.2%) from 42.995%
28349515133

push

github

flatcap
flags: check for NULL email and thread in mutt_thread_set_flag()

Prevent a SIGSEGV in mutt_thread_set_flag() by adding validation for
the Email pointer and its associated MuttThread.

Some callers in index/functions.c, such as op_main_read_thread() and
op_undelete_thread(), do not guard against shared->email being NULL
(which occurs when the mailbox is empty). If triggered, they pass a
NULL Email pointer to mutt_thread_set_flag(), causing a crash when
attempting to access the thread.

Additionally, even if the Email pointer is valid, its thread
association (e->thread) can be NULL. This happens when threading is
disabled, but can also occur when threading is enabled if the thread
tree has been cleared (e.g., via mutt_clear_threads() during a
rebuild, or mview_free() during teardown) and not yet rebuilt. If
mutt_thread_set_flag() is called in this transient state,
attempting to traverse the thread results in a SIGSEGV.

To address this, we now return early if the Email pointer is NULL,
verify that threading is enabled (preserving the "Threading is not
enabled" error message), and return early if the MuttThread pointer
itself is NULL.

12698 of 29649 relevant lines covered (42.83%)

5204.03 hits per line

Coverage Regressions

Lines Coverage ∆ File
215
6.03
-3.52% sidebar/functions_sidebar.c
160
0.0
0.0% attach/functions.c
133
0.0
0.0% sidebar/window.c
132
4.79
-0.0% imap/imap.c
24
0.0
0.0% sidebar/expando.c
1
97.96
-2.04% compress/lz4.c
Jobs
ID Job ID Ran Files Coverage
1 28349515133.1 29 Jun 2026 04:56AM UTC 267
42.83
GitHub Action Run
Source Files on build 28349515133
  • Tree
  • List 267
  • Changed 9
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28349515133
  • 3abedd49 on github
  • Prev Build on main (#27930548110)
  • Next Build on main (#28768427904)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc