FiloSottile / Heartbleed

A checker (site and tool) for CVE-2014-0160
http://filippo.io/Heartbleed
MIT License
2.31k stars 461 forks source link

Crash if argv is empty #20

Closed jleclanche closed 10 years ago

jleclanche commented 10 years ago
% heartbleed
panic: runtime error: index out of range

goroutine 1 [running]:
runtime.panic(0x5c56c0, 0x816c57)
        /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
main.main()
        .../heartbleed/src/src/github.com/FiloSottile/Heartbleed/bleed.go:10 +0x5b5

This needs a nicer error message :-)

FiloSottile commented 10 years ago

PR? :heart: (It's on my TODO otherwise)

jleclanche commented 10 years ago

I'm no good with Go! I'd love to PR but this is not a good time to start for me :(