-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
golang-1.14 (1.14.6-1) unstable; urgency=medium * New upstream version 1.14.6 - Refresh patches - net/http: Expect 100-continue panics in httputil.ReverseProxy. See golang/go#34902, fixes CVE-2020-15586
- Loading branch information
Showing
47 changed files
with
1,554 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
go1.14.4 | ||
go1.14.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
golang-1.14 (1.14.6-1) unstable; urgency=medium | ||
|
||
* New upstream version 1.14.6 | ||
- Refresh patches | ||
- net/http: Expect 100-continue panics in httputil.ReverseProxy. | ||
See https://github.com/golang/go/issues/34902, fixes CVE-2020-15586 | ||
|
||
-- Dr. Tobias Quathamer <[email protected]> Mon, 03 Aug 2020 20:38:32 +0200 | ||
|
||
golang-1.14 (1.14.4-2) unstable; urgency=medium | ||
|
||
* Team upload. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 350223e0208a91e11a9fcc65611f21b63b840247 Mon Sep 17 00:00:00 2001 | ||
From: YunQiang Su <[email protected]> | ||
Date: Tue, 09 Jun 2020 04:09:58 +0000 | ||
Subject: [PATCH] cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC | ||
Date: Tue, 9 Jun 2020 04:09:58 +0000 | ||
Subject: [PATCH] cmd/go, | ||
cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC | ||
|
||
For mips32 currently, we are using FP32, while the gcc may be FPXX, | ||
which may generate .MIPS.abiflags and .gnu.attributes section with | ||
|
@@ -28,12 +28,16 @@ Fixes #39435 | |
|
||
Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930 | ||
--- | ||
src/cmd/cgo/gcc.go | 12 ++++++++++-- | ||
src/cmd/cgo/main.go | 4 +++- | ||
src/cmd/go/internal/work/exec.go | 14 ++++++++++++-- | ||
3 files changed, 25 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/src/cmd/cgo/gcc.go b/src/cmd/cgo/gcc.go | ||
index a59534e..d1bdee8 100644 | ||
index 7f99057..dd69fd7 100644 | ||
--- a/src/cmd/cgo/gcc.go | ||
+++ b/src/cmd/cgo/gcc.go | ||
@@ -1548,9 +1548,17 @@ | ||
@@ -1545,9 +1545,17 @@ func (p *Package) gccMachine() []string { | ||
case "s390x": | ||
return []string{"-m64"} | ||
case "mips64", "mips64le": | ||
|
@@ -57,7 +61,7 @@ diff --git a/src/cmd/cgo/main.go b/src/cmd/cgo/main.go | |
index 5a7bb3f..e0fede8 100644 | ||
--- a/src/cmd/cgo/main.go | ||
+++ b/src/cmd/cgo/main.go | ||
@@ -227,7 +227,7 @@ | ||
@@ -227,7 +227,7 @@ var gccgoMangleCheckDone bool | ||
var gccgoNewmanglingInEffect bool | ||
var importRuntimeCgo = flag.Bool("import_runtime_cgo", true, "import runtime/cgo in generated code") | ||
var importSyscall = flag.Bool("import_syscall", true, "import syscall in generated code") | ||
|
@@ -66,7 +70,7 @@ index 5a7bb3f..e0fede8 100644 | |
|
||
func main() { | ||
objabi.AddVersionFlag() // -V | ||
@@ -376,6 +376,8 @@ | ||
@@ -376,6 +376,8 @@ func newPackage(args []string) *Package { | ||
if s := os.Getenv("GOOS"); s != "" { | ||
goos = s | ||
} | ||
|
@@ -76,10 +80,10 @@ index 5a7bb3f..e0fede8 100644 | |
if ptrSize == 0 { | ||
fatalf("unknown ptrSize for $GOARCH %q", goarch) | ||
diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | ||
index 071c9d2..347a060 100644 | ||
index 25d1507..bdef08e 100644 | ||
--- a/src/cmd/go/internal/work/exec.go | ||
+++ b/src/cmd/go/internal/work/exec.go | ||
@@ -2488,9 +2488,19 @@ | ||
@@ -2409,9 +2409,19 @@ func (b *Builder) gccArchArgs() []string { | ||
case "s390x": | ||
return []string{"-m64", "-march=z196"} | ||
case "mips64", "mips64le": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Issue 9737: verify that GOARM and GO386 affect the computed build ID | ||
|
||
[short] skip | ||
|
||
# 386 | ||
cd $GOPATH/src/mycmd | ||
env GOOS=linux | ||
env GOARCH=386 | ||
env GO386=387 | ||
go install mycmd | ||
env GO386=sse2 | ||
stale mycmd | ||
|
||
# arm | ||
cd $GOPATH/src/mycmd | ||
env GOOS=linux | ||
env GOARCH=arm | ||
env GOARM=5 | ||
go install mycmd | ||
env GOARM=7 | ||
stale mycmd | ||
|
||
|
||
-- mycmd/x.go -- | ||
package main | ||
|
||
func main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Run chatty tests. Assert on CONT lines. | ||
! go test chatty_test.go -v -bench . chatty_bench | ||
|
||
# Sanity check that output occurs. | ||
stdout -count=2 'this is sub-0' | ||
stdout -count=2 'this is sub-1' | ||
stdout -count=2 'this is sub-2' | ||
stdout -count=1 'error from sub-0' | ||
stdout -count=1 'error from sub-1' | ||
stdout -count=1 'error from sub-2' | ||
|
||
# Benchmarks should not print CONT. | ||
! stdout CONT | ||
|
||
-- chatty_test.go -- | ||
package chatty_bench | ||
|
||
import ( | ||
"testing" | ||
"fmt" | ||
) | ||
|
||
func BenchmarkChatty(b *testing.B) { | ||
for i := 0; i < 3; i++ { | ||
b.Run(fmt.Sprintf("sub-%d", i), func(b *testing.B) { | ||
for j := 0; j < 2; j++ { | ||
b.Logf("this is sub-%d", i) | ||
} | ||
b.Errorf("error from sub-%d", i) | ||
}) | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/cmd/go/testdata/script/test_benchmark_chatty_success.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Run chatty tests. Assert on CONT lines. | ||
go test chatty_test.go -v -bench . chatty_bench | ||
|
||
# Sanity check that output happens. We don't provide -count because the amount | ||
# of output is variable. | ||
stdout 'this is sub-0' | ||
stdout 'this is sub-1' | ||
stdout 'this is sub-2' | ||
|
||
# Benchmarks should not print CONT. | ||
! stdout CONT | ||
|
||
-- chatty_test.go -- | ||
package chatty_bench | ||
|
||
import ( | ||
"testing" | ||
"fmt" | ||
) | ||
|
||
func BenchmarkChatty(b *testing.B) { | ||
for i := 0; i < 3; i++ { | ||
b.Run(fmt.Sprintf("sub-%d", i), func(b *testing.B) { | ||
for j := 0; j < 2; j++ { | ||
b.Logf("this is sub-%d", i) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Run chatty tests. Assert on CONT lines. | ||
! go test chatty_test.go -v | ||
|
||
# Sanity check that output occurs. | ||
stdout -count=2 'this is sub-0' | ||
stdout -count=2 'this is sub-1' | ||
stdout -count=2 'this is sub-2' | ||
stdout -count=1 'error from sub-0' | ||
stdout -count=1 'error from sub-1' | ||
stdout -count=1 'error from sub-2' | ||
|
||
# Non-parallel tests should not print CONT. | ||
! stdout CONT | ||
|
||
-- chatty_test.go -- | ||
package chatty_test | ||
|
||
import ( | ||
"testing" | ||
"fmt" | ||
) | ||
|
||
func TestChatty(t *testing.T) { | ||
for i := 0; i < 3; i++ { | ||
t.Run(fmt.Sprintf("sub-%d", i), func(t *testing.T) { | ||
for j := 0; j < 2; j++ { | ||
t.Logf("this is sub-%d", i) | ||
} | ||
t.Errorf("error from sub-%d", i) | ||
}) | ||
} | ||
} |
Oops, something went wrong.