fix a crash in base64 buffer pool (#8925)

looks like 1024 buffer size is not enough in
all situations, use 8192 instead which
can satisfy all the rare situations that
may arise in base64 decoding.
master
Harshavardhana 5 years ago committed by GitHub
parent 1ea2449269
commit 680e493065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/jwt/parser.go

@ -57,7 +57,7 @@ var (
func init() { func init() {
base64BufPool = sync.Pool{ base64BufPool = sync.Pool{
New: func() interface{} { New: func() interface{} {
buf := make([]byte, 1024) buf := make([]byte, 8192)
return &buf return &buf
}, },
} }

Loading…
Cancel
Save