]> Cypherpunks.ru repositories - gostls13.git/commit
mime/multipart: return overflow errors in Reader.ReadForm
authoravivklas <avivklas@gmail.com>
Fri, 7 Aug 2020 18:50:12 +0000 (21:50 +0300)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Mon, 28 Sep 2020 08:59:02 +0000 (08:59 +0000)
commit874b3132a84cf76da6a48978826c04c380a37a50
tree0b0d9c02f741ae973628002b8b109d7eae6cdefb
parent05b626e49075d3b9f2fcda65c7cc9054381da047
mime/multipart: return overflow errors in Reader.ReadForm

Updates Reader.ReadForm to check for overflow errors that may
result from a leeway addition of 10MiB to the input argument
maxMemory.

Fixes #40430

Change-Id: I510b8966c95c51d04695ba9d08fcfe005fd11a5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/247477
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/mime/multipart/formdata.go
src/mime/multipart/formdata_test.go