1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/mime/multipart
Francisco Claude 8560ead38a multipart: fixes problem parsing mime/multipart of certain lengths
When parsing the multipart data, if the delimiter appears but doesn't
finish with -- or \n or \r\n, it assumes the data can be consumed. This
is incorrect when the peeking buffer finishes with --delimiter-

Fixes #12662

Change-Id: I329556a9a206407c0958289bf7a9009229120bb9
Reviewed-on: https://go-review.googlesource.com/14652
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-09-24 09:00:52 +00:00
..
testdata
example_test.go
formdata_test.go
formdata.go
multipart_test.go multipart: fixes problem parsing mime/multipart of certain lengths 2015-09-24 09:00:52 +00:00
multipart.go multipart: fixes problem parsing mime/multipart of certain lengths 2015-09-24 09:00:52 +00:00
writer_test.go
writer.go all: cleanup usage of dashes in package documentation 2015-07-28 02:44:41 +00:00