gmtls
gmtls copied to clipboard
gmtls握手panic
2023/08/0117:38:35http:panicserving171.91.3.32:9055:runtimeerror:invalidmemoryaddressornilpointerdereference goroutine207732[running]: net/http.(*conn).serve.func1() /usr/go/src/net/http/server.go:1802+0xb9 panic({0xf8f440,0x1b17d90}) /usr/go/src/runtime/panic.go:1047+0x266 github.com/tjfoc/gmsm/gmtls.finishedHash.clientSum({{0x127a458,0xc003b61500},{0x127a458,0xc003b61570},{0x127a418,0xc00b498d20},{0x127a418,0xc00b498d80},{0x0,0x0,...},...},...) /root/go/pkg/mod/github.com/tjfoc/[email protected]/gmtls/prf.go:328+0x100 github.com/tjfoc/gmsm/gmtls.(*serverHandshakeState).readFinished(0xc00351b4a0,{0xc0023580e9,0xc,0xc0003e2240}) /root/go/pkg/mod/github.com/tjfoc/[email protected]/gmtls/handshake_server.go:615+0x1df github.com/tjfoc/gmsm/gmtls.(*Conn).serverHandshake(0xc002358000) /root/go/pkg/mod/github.com/tjfoc/[email protected]/gmtls/handshake_server.go:103+0x232 github.com/tjfoc/gmsm/gmtls.(*Conn).Handshake(0xc002358000) /root/go/pkg/mod/github.com/tjfoc/[email protected]/gmtls/conn.go:1289+0x1ca github.com/tjfoc/gmsm/gmtls.(*Conn).Read(0xc002358000,{0xc004389000,0x1000,0xc009c42788}) /root/go/pkg/mod/github.com/tjfoc/[email protected]/gmtls/conn.go:1141+0x55 git.woa.com/bmax/go-nginx/chttp.(*SecConn).Read(0xc009c42780,{0xc004389000,0x10538a0,0xc00c0e8601}) /root/go/pkg/mod/git.woa.com/bmax/[email protected]/chttp/chttp_conn.go:24+0x26 net/http.(*connReader).Read(0xc009c42780,{0xc004389000,0x1000,0x1000})