1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:04:47 -07:00
go/src
Rebecca Stambler b219a68ad9 strconv: check for empty string in UnquoteChar
The existing implementation panics on malformed input of an empty
string. strconv.Unquote validates the length of the inputs, but calling
UnquoteChar directly with an empty string leads to a panic, so add a
check for length. Also, add a test to go/constant to ensure that
MakeFromLiteral does not panic on malformed input such as
"const x = ''".

Change-Id: I4217e38db48a09a21ec414bbfb3087709da62904
Reviewed-on: https://go-review.googlesource.com/116215
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2018-06-04 22:06:42 +00:00
..
archive all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
bufio
builtin
bytes bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
cmd cmd/go: fix 'go get' compatibility for direct download of vgo-aware module 2018-06-04 14:18:39 +00:00
compress all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
container
context context: add benchmarks for context cancellation 2018-05-29 21:57:30 +00:00
crypto all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
database/sql
debug all: regenerate stringer files 2018-05-29 20:35:41 +00:00
encoding all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
errors
expvar
flag
fmt
go strconv: check for empty string in UnquoteChar 2018-06-04 22:06:42 +00:00
hash all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
html all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
image all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
index/suffixarray index/suffixarray: fix a typo mistake in comments 2018-05-29 12:16:51 +00:00
internal net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
io
log
math all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
mime all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
net net: drop special case for macOS 10.7 and earlier 2018-06-04 18:40:49 +00:00
os all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
path os: add js/wasm architecture 2018-06-01 05:18:38 +00:00
plugin
reflect reflect: reuse values during comparison of maps in DeepEqual 2018-05-31 15:18:53 +00:00
regexp all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
runtime runtime: don't crash holding locks on racy timer access 2018-06-04 18:33:41 +00:00
sort all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
strconv strconv: check for empty string in UnquoteChar 2018-06-04 22:06:42 +00:00
strings all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
sync
syscall net: add js/wasm architecture 2018-06-04 16:01:50 +00:00
testing Revert "testing: only compute b.N once when passed -count > 1" 2018-05-31 14:22:44 +00:00
text text/tabwriter: fix BenchmarkPyramid and BenchmarkRagged again 2018-06-04 17:32:17 +00:00
time runtime: don't crash holding locks on racy timer access 2018-06-04 18:33:41 +00:00
unicode all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
unsafe
vendor/golang_org/x net/http: vendor x/net/http/httpproxy, use it in net/http 2018-05-29 21:54:57 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc