~sircmpwn/aerc2#427: 
segfault in reading headers

Using the latest aerc on master (8446d48), I'm seeing the following segfault when opening some emails.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x59cb44]

goroutine 143 [running]:
bufio.(*Reader).fill(0xc000944f00)
    /usr/local/go/src/bufio/bufio.go:100 +0xd4
bufio.(*Reader).Peek(0xc000944f00, 0x1, 0x20, 0xc0009de300, 0xc000a30800, 0x100c00033ad01, 0xc00033add8)
    /usr/local/go/src/bufio/bufio.go:138 +0x4f
github.com/emersion/go-message/textproto.ReadHeader(0xc000944f00, 0x1000, 0x1000, 0xc0017a3000, 0x0, 0x0, 0xc000d141e0)
    /home/lwhsiao/go/pkg/mod/github.com/emersion/go-message@v0.12.0/textproto/header.go:497 +0x7b
git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessageBodyPart.func1(0xc000a30300, 0xc00033af98, 0x1)
    home/lwhsiao/repos/aerc/worker/imap/fetch.go:92 +0xd8
git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages.func1(0xc000954000, 0xc000178500, 0xc0009243f0, 0xc000954060)
    /home/lwhsiao/repos/aerc/worker/imap/fetch.go:169 +0xad
created by git.sr.ht/~sircmpwn/aerc/worker/imap.(*IMAPWorker).handleFetchMessages
    /home/lwhsiao/repos/aerc/worker/imap/fetch.go:165 +0xb6
Status
RESOLVED DUPLICATE
Submitter
~lukehsiao
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~labrat REPORTED DUPLICATE 3 months ago

Register here or Log in to comment, or comment via email.