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.
This commit is contained in:
Harshavardhana 2020-02-03 08:42:32 +05:30 committed by GitHub
parent 1ea2449269
commit 680e493065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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