]> Cypherpunks repositories - gostls13.git/commit
net/http: test that ParseMultipartForm returns an error for int overflow
authoravivklas <avivklas@gmail.com>
Tue, 15 Sep 2020 05:48:44 +0000 (08:48 +0300)
committerDamien Neil <dneil@google.com>
Mon, 19 Oct 2020 17:19:18 +0000 (17:19 +0000)
commit58eadc232e4fd2633761ffdeeaa922216beee74e
tree4d7b6bf94ec6803ac332e34a8d2ab1fc76247af6
parent9c017ff30dd21bbdcdb11f39458d3944db530d7e
net/http: test that ParseMultipartForm returns an error for int overflow

ParseMultipartForm has been changed to return an error if maxMemory
parameter + 10MB causes int overflows. This adds a test for the new
behaviour.

For #40430

Change-Id: I4f66ce8a9382940182011d22a84ee52b1d1364cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/254977
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Damien Neil <dneil@google.com>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/request_test.go