Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marete/c421782bf3db89f470b8 to your computer and use it in GitHub Desktop.
Save marete/c421782bf3db89f470b8 to your computer and use it in GitHub Desktop.
gofuzz openpgp ReadMessage() crasher
SIGABRT: abort
PC=0x437102
goroutine 1 [running]:
runtime.memclr(0xc2080367d0, 0x50)
/tmp/go-fuzz-build851796584/src/runtime/memclr_amd64.s:97 +0x162 fp=0xc20805c738 sp=0xc20805c730
runtime.mallocgc(0x50, 0x5fa140, 0x760610b400000001, 0x472e0c)
/tmp/go-fuzz-build851796584/src/runtime/malloc.go:190 +0x92b fp=0xc20805c7e8 sp=0xc20805c738
runtime.newobject(0x5fa140, 0x8)
/tmp/go-fuzz-build851796584/src/runtime/malloc.go:353 +0x49 fp=0xc20805c810 sp=0xc20805c7e8
golang.org/x/crypto/cast5.NewCipher(0xc20800a4a0, 0x10, 0x10, 0x8, 0x0, 0x0)
/tmp/go-fuzz-build851796584/src/golang.org/x/crypto/cast5/cast5.go:31 +0x1f5 fp=0xc20805c860 sp=0xc20805c810
golang.org/x/crypto/openpgp/packet.CipherFunction.new(0x7fbf281c5c03, 0xc20800a4a0, 0x10, 0x10, 0x0, 0x0)
/tmp/go-fuzz-build851796584/src/golang.org/x/crypto/openpgp/packet/packet.go:689 +0x17d fp=0xc20805c8a8 sp=0xc20805c860
golang.org/x/crypto/openpgp/packet.(*SymmetricallyEncrypted).Decrypt(0xc20803c4b0, 0xc20800a703, 0xc20800a4a0, 0x10, 0x10, 0x0, 0x0, 0x0, 0x0)
/tmp/go-fuzz-build851796584/src/golang.org/x/crypto/openpgp/packet/symmetrically_encrypted.go:110 +0x616 fp=0xc20805c9e0 sp=0xc20805c8a8
golang.org/x/crypto/openpgp.ReadMessage(0x7fbf281c5b60, 0xc2080120e0, 0x7fbf281c5b88, 0x717130, 0x6719a8, 0x0, 0xc208060000, 0x0, 0x0)
/tmp/go-fuzz-build851796584/src/golang.org/x/crypto/openpgp/read.go:268 +0x10f0 fp=0xc20805cdf8 sp=0xc20805c9e0
github.com/marete/gofuzz/openpgp/symmetric-unsigned/fuzz.Fuzz(0x7fbf27f44000, 0x23, 0x100000, 0x10)
/tmp/go-fuzz-build851796584/src/github.com/marete/gofuzz/openpgp/symmetric-unsigned/fuzz/main.go:56 +0x1ca fp=0xc20805cef8 sp=0xc20805cdf8
github.com/dvyukov/go-fuzz/go-fuzz-dep.Main(0x6719a0)
/home/marebri/devel/go/src/github.com/dvyukov/go-fuzz/go-fuzz-dep/main.go:43 +0xe8 fp=0xc20805cf88 sp=0xc20805cef8
main.main()
/tmp/go-fuzz-build851796584/src/go-fuzz-main/main.go:10 +0x2a fp=0xc20805cf98 sp=0xc20805cf88
runtime.main()
/tmp/go-fuzz-build851796584/src/runtime/proc.go:63 +0xf3 fp=0xc20805cfe0 sp=0xc20805cf98
runtime.goexit()
/tmp/go-fuzz-build851796584/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc20805cfe8 sp=0xc20805cfe0
rax 0x0
rbx 0x50
rcx 0xc2080367d0
rdx 0x7fbf281b4000
rdi 0xc2080367d0
rsi 0x7fbf281b8820
rbp 0x0
rsp 0xc20805c730
r8 0x0
r9 0x50
r10 0x50
r11 0x5fa140
r12 0xa
r13 0xb8
r14 0x95b3c9e1906feda0
r15 0xa68ef3014e70d198
rip 0x437102
rflags 0x283
cs 0x33
fs 0x0
gs 0x0
exit status 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment