Sun Dec 4 16:08:55 2016 UTC ()
Update Go to 1.7.4.

Two security-related issues were recently reported, and to address these issues
we have just released Go 1.6.4 and Go 1.7.4.

We recommend that all users update to one of these releases (if you're not sure
which, choose Go 1.7.4).

The issues addressed by these releases are:

On Darwin, user's trust preferences for root certificates were not honored. If
the user had a root certificate loaded in their Keychain that was explicitly
not trusted, a Go program would still verify a connection using that root
certificate.  This is addressed by https://golang.org/cl/33721, tracked in
https://golang.org/issue/18141.
Thanks to Xy Ziemba for identifying and reporting this issue.

The net/http package's Request.ParseMultipartForm method starts writing to
temporary files once the request body size surpasses the given "maxMemory"
limit. It was possible for an attacker to generate a multipart request crafted
such that the server ran out of file descriptors.  This is addressed by
https://golang.org/cl/30410, tracked in https://golang.org/issue/17965.
Thanks to Simon Rawet for the report.


(bsiegert)
diff -r1.41 -r1.42 pkgsrc/lang/go/distinfo
diff -r1.20 -r1.21 pkgsrc/lang/go/version.mk

cvs diff -r1.41 -r1.42 pkgsrc/lang/go/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/go/Attic/distinfo 2016/10/27 18:58:00 1.41
+++ pkgsrc/lang/go/Attic/distinfo 2016/12/04 16:08:55 1.42
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.41 2016/10/27 18:58:00 bsiegert Exp $ 1$NetBSD: distinfo,v 1.42 2016/12/04 16:08:55 bsiegert Exp $
2 2
3SHA1 (go1.7.3.src.tar.gz) = a862e865e9fbfcae21deef3687543fbd16198e26 3SHA1 (go1.7.4.src.tar.gz) = 0fb305c827c8794cfda7e437befa6101a2d06b2e
4RMD160 (go1.7.3.src.tar.gz) = a1fbbf8e0805989e2ca74d66912c87e58328c6b5 4RMD160 (go1.7.4.src.tar.gz) = 8de5ff1fd50a6f0b6bc16e0de0f1e13185f291f0
5SHA512 (go1.7.3.src.tar.gz) = 9289c7720a551725643be757df0b676b7ec3add73e5f01af5e3ac1d81e2b31a304aca6e86d395ddc06fc3982099814478b5ec693124a3327f79399db7bcd73eb 5SHA512 (go1.7.4.src.tar.gz) = dc9950c3ea7100e536ad58fd93505d584276b7c50d4b8fe2ba7f20fd043dcf0d315b735c48945302055e91517594cc2b0061ccec9478a8ab48f1f2836c20afb3
6Size (go1.7.3.src.tar.gz) = 14196345 bytes 6Size (go1.7.4.src.tar.gz) = 14198817 bytes
7SHA1 (patch-lib_time_update.bash) = 17d28ba574dd08735b58cf73487104a5df3b7684 7SHA1 (patch-lib_time_update.bash) = 17d28ba574dd08735b58cf73487104a5df3b7684
8SHA1 (patch-misc_io_clangwrap.sh) = cd91c47ba0fe7b6eb8009dd261c0c26c7d581c29 8SHA1 (patch-misc_io_clangwrap.sh) = cd91c47ba0fe7b6eb8009dd261c0c26c7d581c29
9SHA1 (patch-src_crypto_x509_root__bsd.go) = 0eca1eafa967268ae9b224be4aeda347ebc91901 9SHA1 (patch-src_crypto_x509_root__bsd.go) = 0eca1eafa967268ae9b224be4aeda347ebc91901
10SHA1 (patch-src_syscall_syscall__solaris.go) = 436371947897dcba574a6dfecc6bbcd04f6e25b2 10SHA1 (patch-src_syscall_syscall__solaris.go) = 436371947897dcba574a6dfecc6bbcd04f6e25b2

cvs diff -r1.20 -r1.21 pkgsrc/lang/go/version.mk (expand / switch to unified diff)

--- pkgsrc/lang/go/version.mk 2016/12/02 20:26:01 1.20
+++ pkgsrc/lang/go/version.mk 2016/12/04 16:08:55 1.21
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: version.mk,v 1.20 2016/12/02 20:26:01 maya Exp $ 1# $NetBSD: version.mk,v 1.21 2016/12/04 16:08:55 bsiegert Exp $
2 2
3.include "../../mk/bsd.prefs.mk" 3.include "../../mk/bsd.prefs.mk"
4 4
5GO_VERSION= 1.7.3 5GO_VERSION= 1.7.4
6GO14_VERSION= 1.4.3 6GO14_VERSION= 1.4.3
7 7
8ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-*arm* 8ONLY_FOR_PLATFORM= *-*-i386 *-*-x86_64 *-*-*arm*
9NOT_FOR_PLATFORM= SunOS-*-i386 9NOT_FOR_PLATFORM= SunOS-*-i386
10.if ${MACHINE_ARCH} == "i386" 10.if ${MACHINE_ARCH} == "i386"
11GOARCH= 386 11GOARCH= 386
12GOCHAR= 8 12GOCHAR= 8
13.elif ${MACHINE_ARCH} == "x86_64" 13.elif ${MACHINE_ARCH} == "x86_64"
14GOARCH= amd64 14GOARCH= amd64
15GOCHAR= 6 15GOCHAR= 6
16.elif !empty(MACHINE_ARCH:M*arm) 16.elif !empty(MACHINE_ARCH:M*arm)
17GOARCH= arm 17GOARCH= arm
18GOCHAR= 5 18GOCHAR= 5