pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang Update go119 to 1.19.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fce74b3f1e6f
branches:  trunk
changeset: 386298:fce74b3f1e6f
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Wed Oct 05 11:20:24 2022 +0000

description:
Update go119 to 1.19.2

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.

diffstat:

 lang/go/version.mk  |  4 ++--
 lang/go119/PLIST    |  8 +++++++-
 lang/go119/distinfo |  8 ++++----
 3 files changed, 13 insertions(+), 7 deletions(-)

diffs (71 lines):

diff -r f41c1195644a -r fce74b3f1e6f lang/go/version.mk
--- a/lang/go/version.mk        Wed Oct 05 11:10:39 2022 +0000
+++ b/lang/go/version.mk        Wed Oct 05 11:20:24 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.162 2022/10/05 09:51:52 bsiegert Exp $
+# $NetBSD: version.mk,v 1.163 2022/10/05 11:20:24 bsiegert Exp $
 
 #
 # If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -6,7 +6,7 @@
 #
 .include "go-vars.mk"
 
-GO119_VERSION= 1.19.1
+GO119_VERSION= 1.19.2
 GO118_VERSION= 1.18.7
 GO117_VERSION= 1.17.13
 GO116_VERSION= 1.16.15
diff -r f41c1195644a -r fce74b3f1e6f lang/go119/PLIST
--- a/lang/go119/PLIST  Wed Oct 05 11:10:39 2022 +0000
+++ b/lang/go119/PLIST  Wed Oct 05 11:20:24 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2022/09/06 19:11:13 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/10/05 11:20:24 bsiegert Exp $
 bin/go${GOVERSSUFFIX}
 bin/gofmt${GOVERSSUFFIX}
 go119/CONTRIBUTING.md
@@ -960,6 +960,7 @@
 go119/src/archive/tar/testdata/neg-size.tar
 go119/src/archive/tar/testdata/nil-uid.tar
 go119/src/archive/tar/testdata/pax-bad-hdr-file.tar
+go119/src/archive/tar/testdata/pax-bad-hdr-large.tar.bz2
 go119/src/archive/tar/testdata/pax-bad-mtime-file.tar
 go119/src/archive/tar/testdata/pax-global-records.tar
 go119/src/archive/tar/testdata/pax-multi-hdrs.tar
@@ -11225,7 +11226,11 @@
 go119/test/fixedbugs/issue5470.dir/a.go
 go119/test/fixedbugs/issue5470.dir/b.go
 go119/test/fixedbugs/issue5470.go
+go119/test/fixedbugs/issue54911.go
 go119/test/fixedbugs/issue5493.go
+go119/test/fixedbugs/issue54991.go
+go119/test/fixedbugs/issue55122.go
+go119/test/fixedbugs/issue55122b.go
 go119/test/fixedbugs/issue5515.go
 go119/test/fixedbugs/issue5581.go
 go119/test/fixedbugs/issue5607.go
@@ -12080,6 +12085,7 @@
 go119/test/typeparam/issue53477.go
 go119/test/typeparam/issue53762.go
 go119/test/typeparam/issue54135.go
+go119/test/typeparam/issue54225.go
 go119/test/typeparam/issue54302.dir/a.go
 go119/test/typeparam/issue54302.dir/main.go
 go119/test/typeparam/issue54302.go
diff -r f41c1195644a -r fce74b3f1e6f lang/go119/distinfo
--- a/lang/go119/distinfo       Wed Oct 05 11:10:39 2022 +0000
+++ b/lang/go119/distinfo       Wed Oct 05 11:20:24 2022 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2022/09/06 19:11:13 bsiegert Exp $
+$NetBSD: distinfo,v 1.3 2022/10/05 11:20:24 bsiegert Exp $
 
-BLAKE2s (go1.19.1.src.tar.gz) = 58558ab93053577809b2b826edf4e8217a312efcaedbfbff5317beddcd8d4bee
-SHA512 (go1.19.1.src.tar.gz) = 7e8cf557f05d5a537f9305bb9c19cf8ab9ce640376e5ea97ff0d490b016364936e8dfc129462760c4e817af01fdf09e3f815b88412f9985bb254dfa3167752c0
-Size (go1.19.1.src.tar.gz) = 26527375 bytes
+BLAKE2s (go1.19.2.src.tar.gz) = 09640c7d9fafd3e5a58de1696940e4e5e4102d15d567fff98077c75e7e6afd7f
+SHA512 (go1.19.2.src.tar.gz) = 72901e5eaf1857b22bf62a82690579aa4bd8b8130f16416313d249600c99e1ae3c1451ac5c53138ce41dd39dd72dcf8d0f3592b98f4239754efcf4f8b0103cb4
+Size (go1.19.2.src.tar.gz) = 26534465 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



Home | Main Index | Thread Index | Old Index