1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-01-29 18:25:17 +01:00
aerc/commands
Moritz Poldrack 70bd4678d0 mark: fix panic on incomplete message
At times messages from the message store may be incomplete and not
contain the sender. This is unexpected, but should not crash the
application.

[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x55f3cee9b99e]

panic({0x55f3cf118720?, 0x55f3cf72e6f0?})
	runtime/panic.go:783 +0x132
git.sr.ht/~rjarry/aerc/commands/msg.Mark.Execute.senderFilter.func2({0xc0019c4000, 0x801, 0x0?})
	git.sr.ht/~rjarry/aerc/commands/msg/mark.go:180 +0x1fe
git.sr.ht/~rjarry/aerc/commands/msg.Mark.Execute({0x1, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, {0xc00190eb70, 0x7}}, {0xc001542810, ...})
	git.sr.ht/~rjarry/aerc/commands/msg/mark.go:106 +0x68c
git.sr.ht/~rjarry/aerc/commands.ExecuteCommand({0x55f3cf21c8f0, 0x55f3cf8cd220?}, {0xc00190ea90?, 0x500c000fb2300?})
	git.sr.ht/~rjarry/aerc/commands/commands.go:221 +0x4d3

Fixes: 6baffcda ("mark: add filter-based marking")
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
2026-01-07 11:07:34 +01:00
..
account commands: add :toggle-sidebar command 2025-11-29 21:08:34 +01:00
compose commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
mode lint: simplify code (gosimple) 2022-08-04 21:57:52 +02:00
msg mark: fix panic on incomplete message 2026-01-07 11:07:34 +01:00
msgview config: allow specifying the temporary directory 2025-10-30 21:17:44 +01:00
patch patch: use subcommand descriptions in completion items 2025-11-17 09:51:00 +01:00
testdata completion: complete paths with FilterList 2024-10-27 10:15:08 +01:00
cd.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
choose.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
close.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
commands.go commands: make commands.Register() strict in non-accepting pointers 2025-11-05 10:42:19 +01:00
completion_helpers.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
completion_helpers_test.go commands: add OptionsProvider and OptionCompleter 2023-05-16 13:39:17 +02:00
ct.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
echo.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
eml.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
exec.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
help.go help: list pages dynamically from mandb 2025-12-11 21:37:09 +01:00
history.go history: read the history file from XDG_STATE_HOME 2024-10-24 22:13:51 +02:00
menu.go config: allow specifying the temporary directory 2025-10-30 21:17:44 +01:00
move-tab.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
new-account.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
next-tab.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
pin-tab.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
prompt.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
pwd.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
quit.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
redraw.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
reload.go reload: trigger upon SIGHUP signal reception 2025-09-23 14:02:41 +02:00
send-keys.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
suspend.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
term.go term: allow setting custom title for the terminal tab 2025-05-05 13:49:04 +02:00
util.go patch: use subcommand descriptions in completion items 2025-11-17 09:51:00 +01:00
util_test.go completion: complete paths with FilterList 2024-10-27 10:15:08 +01:00
version.go commands: add version command 2025-02-20 23:09:47 +01:00
z.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00