1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:31:21 -06:00
go/src/mime
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
..
multipart multipart: fixes problem parsing mime/multipart of certain lengths 2015-09-24 09:00:52 +00:00
quotedprintable mime/quotedprintable: Return a Reader instead of an io.Reader 2015-04-16 16:18:26 +00:00
testdata
encodedword_test.go mime: move examples to external test file 2015-08-22 18:39:29 +00:00
encodedword.go mime: fix docs for WordDecoder.Decode 2015-09-10 21:50:17 +00:00
example_test.go mime: move examples to external test file 2015-08-22 18:39:29 +00:00
grammar.go all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
mediatype_test.go
mediatype.go
type_dragonfly.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_freebsd.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_openbsd.go mime: add mime.types paths for BSDs 2015-06-12 15:51:21 +00:00
type_plan9.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_test.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_unix.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00
type_windows.go mime, time, internal/syscall/windows/registry: use new registry package to simplify code 2015-04-30 04:33:42 +00:00
type.go mime: tighten up and simplify tests 2015-03-30 09:12:03 +00:00