Subject: [nncp-devel] crash in nncp-toss from mail packet

From: "Shawn K. Quinn" <[email-masked]>
Date: Sat, 14 Jan 2017 19:44:33 -0600

This is from feeding nncp-mail a short test message from the command
line by hand, on the system tossing them. Even if I'm doing it wrong,
this really shouldn't happen. Worse, this crash will keep happening on
any later run of nncp-toss (on the receiving system) until the packet is
manually deleted.

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x68ec00, 0xc82000a070)
	/usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
cypherpunks.ru/nncp.(*Ctx).Toss(0xc820058550, 0xc82000f820,
0xc8200900ff, 0xc820058500)
	/home/skquinn/usr/src/nncp-0.1/src/cypherpunks.ru/nncp/toss.go:140 +0x3e82
main.main()

	/home/skquinn/usr/src/nncp-0.1/src/cypherpunks.ru/nncp/cmd/nncp-toss/main.go:89 +0xc47

-- 
Shawn K. Quinn <[email-masked]>
http://www.rantroulette.com
http://www.skqrecordquest.com