summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2022-10-07 16:34:02 +0000
committerbsiegert <bsiegert@pkgsrc.org>2022-10-07 16:34:02 +0000
commit8e861e23f6d0f44e8b66c477c4980ff066b6b4d7 (patch)
treec08b3806d87ca8a6a4fe628c5af57a3ae190b6aa
parent3f22ffe9b86c5b008a61e64aa2d23f4689628837 (diff)
downloadpkgsrc-8e861e23f6d0f44e8b66c477c4980ff066b6b4d7.tar.gz
Pullup ticket #6679 - requested by taca
lang/go118: security fix Revisions pulled up: - lang/go/version.mk 1.162 - lang/go118/PLIST 1.8 - lang/go118/distinfo 1.8 --- Module Name: pkgsrc Committed By: bsiegert Date: Wed Oct 5 09:51:52 UTC 2022 Modified Files: pkgsrc/lang/go: version.mk pkgsrc/lang/go118: PLIST distinfo Log Message: go118: update to 1.18.7 This minor release includes 3 security fixes following the security policy: - archive/tar: unbounded memory consumption when reading headers Reader.Read did not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. Reader.Read now limits the maximum size of header blocks to 1 MiB. Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue. This is CVE-2022-2879 and Go issue https://go.dev/issue/54853. - net/http/httputil: ReverseProxy should not forward unparseable query parameters Requests forwarded by ReverseProxy included the raw query parameters from the inbound request, including unparseable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparseable value. ReverseProxy will now sanitize the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy.Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged. Thanks to Gal Goldstein (Security Researcher, Oxeye) and Daniel Abeles (Head of Research, Oxeye) for reporting this issue. This is CVE-2022-2880 and Go issue https://go.dev/issue/54663. - regexp/syntax: limit memory used by parsing regexps The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. Each regexp being parsed is now limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are now rejected. Normal use of regular expressions is unaffected. Thanks to Adam Korczynski (ADA Logics) and OSS-Fuzz for reporting this issue. This is CVE-2022-41715 and Go issue https://go.dev/issue/55949.
-rw-r--r--lang/go/version.mk4
-rw-r--r--lang/go118/PLIST6
-rw-r--r--lang/go118/distinfo8
3 files changed, 11 insertions, 7 deletions
diff --git a/lang/go/version.mk b/lang/go/version.mk
index 7a3334e1100..ff6cb3528ae 100644
--- a/lang/go/version.mk
+++ b/lang/go/version.mk
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.159 2022/09/12 12:16:05 jperkin Exp $
+# $NetBSD: version.mk,v 1.159.2.1 2022/10/07 16:34:02 bsiegert Exp $
#
# If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -7,7 +7,7 @@
.include "go-vars.mk"
GO119_VERSION= 1.19.1
-GO118_VERSION= 1.18.6
+GO118_VERSION= 1.18.7
GO117_VERSION= 1.17.13
GO116_VERSION= 1.16.15
GO110_VERSION= 1.10.8
diff --git a/lang/go118/PLIST b/lang/go118/PLIST
index faa345e3f83..c6496f95f91 100644
--- a/lang/go118/PLIST
+++ b/lang/go118/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2022/09/07 06:36:33 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
bin/go${GOVERSSUFFIX}
bin/gofmt${GOVERSSUFFIX}
go118/AUTHORS
@@ -933,6 +933,7 @@ go118/src/archive/tar/testdata/issue12435.tar
go118/src/archive/tar/testdata/neg-size.tar
go118/src/archive/tar/testdata/nil-uid.tar
go118/src/archive/tar/testdata/pax-bad-hdr-file.tar
+go118/src/archive/tar/testdata/pax-bad-hdr-large.tar.bz2
go118/src/archive/tar/testdata/pax-bad-mtime-file.tar
go118/src/archive/tar/testdata/pax-global-records.tar
go118/src/archive/tar/testdata/pax-multi-hdrs.tar
@@ -10820,6 +10821,8 @@ go118/test/fixedbugs/issue5470.dir/a.go
go118/test/fixedbugs/issue5470.dir/b.go
go118/test/fixedbugs/issue5470.go
go118/test/fixedbugs/issue5493.go
+go118/test/fixedbugs/issue55122.go
+go118/test/fixedbugs/issue55122b.go
go118/test/fixedbugs/issue5515.go
go118/test/fixedbugs/issue5581.go
go118/test/fixedbugs/issue5607.go
@@ -11662,6 +11665,7 @@ go118/test/typeparam/issue52228.go
go118/test/typeparam/issue52241.go
go118/test/typeparam/issue53419.go
go118/test/typeparam/issue53477.go
+go118/test/typeparam/issue54911.go
go118/test/typeparam/list.go
go118/test/typeparam/list2.go
go118/test/typeparam/listimp.dir/a.go
diff --git a/lang/go118/distinfo b/lang/go118/distinfo
index d578de74e59..887982b9fc4 100644
--- a/lang/go118/distinfo
+++ b/lang/go118/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2022/09/07 06:36:33 bsiegert Exp $
+$NetBSD: distinfo,v 1.7.2.1 2022/10/07 16:34:03 bsiegert Exp $
-BLAKE2s (go1.18.6.src.tar.gz) = 71c3a452522d81e751845cc89a341a7164d80c2d3368d36c6bf71191185117b2
-SHA512 (go1.18.6.src.tar.gz) = 2af66b09bfe033b413eb7603a73a490319bf49fec0a2e20c40350e60b9ef35250a6dc8544c5fc67bd1ede55e242d056e7749f69ef500a38b1efe4b8f93078de3
-Size (go1.18.6.src.tar.gz) = 22865753 bytes
+BLAKE2s (go1.18.7.src.tar.gz) = 90a986b01c2ff99dc45c08aa05e35c3c3495bc0265a057aead2d64656e321780
+SHA512 (go1.18.7.src.tar.gz) = cf1ff024e94b900b87cc52d3ec04b0f7f853880a99c416791ad4b9af5f8e50ec82fbe00788bc8dcc184ef5ce1a9df17f5f5e95cf01c0c8138f28f53d691ca5d4
+Size (go1.18.7.src.tar.gz) = 22872579 bytes
SHA1 (patch-misc_ios_clangwrap.sh) = 0a06403609cb7bce2e6f65444fd322f486761afe
SHA1 (patch-src_cmd_dist_util.go) = 2d9c2f59e27672d56f5f1a0e3f9d5101a05546a7
SHA1 (patch-src_crypto_x509_root__bsd.go) = 0b5dead901450967109303f873a2696c65ccac35