Proposed (#1825)
toggle-quoted | levels | quotes shown |
---|---|---|
default | 0 | all |
toggled | 0 | none |
default | x | all |
toggled | x | x |
Proposed (mine)
2 ==79386==ERROR: AddressSanitizer: heap-use-after-free on address 0x60700007dc08 at pc 0x000000518dcc bp 0x7fffffff0480 sp 0x7fffffff0478 | |
3 READ of size 8 at 0x60700007dc08 thread T0 | |
4 #0 0x518dcb in mutt_clear_threads /usr/home/gahr/github/neomutt/mutt_thread.c:601:21 | |
5 #1 0x3fd37e in ctx_mailbox_changed /usr/home/gahr/github/neomutt/context.c:267:7 | |
6 #2 0x4cdaf4 in mutt_mailbox_changed /usr/home/gahr/github/neomutt/mailbox.c:534:3 | |
7 #3 0x52cf0e in mx_fastclose_mailbox /usr/home/gahr/github/neomutt/mx.c:386:3 | |
8 #4 0x52dba5 in mx_mbox_close /usr/home/gahr/github/neomutt/mx.c:549:5 | |
9 #5 0x606b37 in mutt_write_fcc /usr/home/gahr/github/neomutt/sendlib.c:3327:3 | |
10 #6 0x5e5249 in postpone_message /usr/home/gahr/github/neomutt/send.c:1691:7 | |
11 #7 0x5dd944 in ci_send_message /usr/home/gahr/github/neomutt/send.c:2272:11 |
char *cur = NULL; | |
int pos = 0; | |
while ((cur = strchr(prompt, '('))) | |
{ | |
SETCOLOR(MT_COLOR_PROMPT); | |
int substrlen = cur - prompt; | |
mutt_window_mvaddnstr(MuttMessageWindow, 0, pos, prompt, substrlen); | |
pos += substrlen; | |
SETCOLOR(MT_COLOR_OPTIONS); |
################################################################################ | |
# imap.cfg | |
source ./imap_gmail.cfg | |
macro index <F6> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_fastmail.cfg<enter><sync-mailbox>" | |
macro index <F7> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_gmail.cfg<enter><sync-mailbox>" | |
macro index <F8> "<enter-command>unmailboxes *<enter><enter-command>source ~/.config/neomutt/imap_hotmail.cfg<enter><sync-mailbox>" | |
set imap_check_subscribed = yes |
Proposed (#1825)
toggle-quoted | levels | quotes shown |
---|---|---|
default | 0 | all |
toggled | 0 | none |
default | x | all |
toggled | x | x |
Proposed (mine)
$ cat -n test.cpp | |
1 #include <cstdint> | |
2 | |
3 enum Foo : uint8_t | |
4 { | |
5 FOO_000, FOO_001, FOO_002, FOO_003, FOO_004, FOO_005, FOO_006, FOO_007, | |
6 FOO_008, FOO_009, FOO_010, FOO_011, FOO_012, FOO_013, FOO_014, FOO_015, | |
7 FOO_016, FOO_017, FOO_018, FOO_019, FOO_020, FOO_021, FOO_022, FOO_023, | |
8 FOO_024, FOO_025, FOO_026, FOO_027, FOO_028, FOO_029, FOO_030, FOO_031, |
#0 email_free (ptr=0x62600001dd40) at email/email.c:48 | |
#1 0x00000000003f37ae in ctx_update_tables (ctx=0x607000008830, committing=true) at context.c:282 | |
#2 0x00000000003ef13a in ctx_mailbox_observer (nc=0x7fffffff76c0) at context.c:310 | |
#3 0x0000000000816c92 in send (source=0x6030000e34d0, current=0x6030000e34d0, event_type=NT_MAILBOX, event_subtype=8, event_data=0x7fffffff7900) at mutt/notify.c:11 | |
9 | |
#4 0x000000000081678d in notify_send (notify=0x6030000e34d0, event_type=NT_MAILBOX, event_subtype=8, event_data=0x7fffffff7900) at mutt/notify.c:140 | |
#5 0x000000000078a604 in mailbox_changed (m=0x612000020ec0, action=NT_MAILBOX_UPDATE) at core/mailbox.c:180 | |
#6 0x00000000006bd951 in imap_expunge_mailbox (m=0x612000020ec0) at imap/imap.c:691 | |
#7 0x00000000006afccb in imap_cmd_finish (adata=0x60e000002c00) at imap/command.c:1339 | |
#8 0x00000000006c35ba in imap_check_mailbox (m=0x612000020ec0, force=false) at imap/imap.c:1106 |
#define ARRAY_FOREACH_FROM_TO(elem, head, from, to) \ | |
for (size_t ARRAY_FOREACH_FROM_TO_IDX = (from); \ | |
(ARRAY_FOREACH_FROM_TO_IDX < (to)) && \ | |
((elem) = ARRAY_GET((head), ARRAY_FOREACH_FROM_TO_IDX)); \ | |
ARRAY_FOREACH_FROM_TO_IDX++) |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#define ARRAY_HEAD(name, type) \ | |
struct name { \ | |
size_t size, capacity; \ | |
type *entries; \ | |
} |
==84375==ERROR: AddressSanitizer: heap-use-after-free on address 0x612000001330 at pc 0x0000006c2808 bp 0x7fffffff6b90 sp 0x7fffffff6b88 | |
READ of size 8 at 0x612000001330 thread T0 | |
#0 0x6c2807 in imap_status /usr/home/gahr/github/neomutt/imap/imap.c:1165:42 | |
#1 0x6c257b in imap_mailbox_status /usr/home/gahr/github/neomutt/imap/imap.c:1247:10 | |
#2 0x6cd4ec in imap_mbox_check_stats /usr/home/gahr/github/neomutt/imap/imap.c:1198:10 | |
#3 0x50de71 in mx_mbox_check_stats /usr/home/gahr/github/neomutt/mx.c:1822:10 | |
#4 0x4e518b in mailbox_check /usr/home/gahr/github/neomutt/mutt_mailbox.c:111:14 | |
#5 0x4e43ec in mutt_mailbox_check /usr/home/gahr/github/neomutt/mutt_mailbox.c:190:5 | |
#6 0x4528be in mutt_index_menu /usr/home/gahr/github/neomutt/index.c:1318:18 | |
#7 0x4a8698 in main /usr/home/gahr/github/neomutt/main.c:1230:7 |