1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-01-08 05:07:30 +01:00
aerc/commands/msg
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
..
archive.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
bounce.go commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
copy.go commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
delete.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
envelope.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
fold.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
forward.go commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
invite.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
mark.go mark: fix panic on incomplete message 2026-01-07 11:07:34 +01:00
modify-labels.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
move.go commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
pipe.go pipe: add support for piping messages in compose review mode 2025-06-20 09:02:01 +02:00
read.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
recall.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
reply.go commands: quote and add space to completions by default 2025-11-17 09:51:00 +01:00
toggle-thread-context.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
toggle-threads.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
unsubscribe.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
unsubscribe_test.go treewide: run go modernize 2025-12-20 18:06:30 +01:00
utils.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00