pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Thu Dec  8 10:28:44 UTC 2022

Modified Files:
        pkgsrc/lang/go: version.mk
        pkgsrc/lang/go118: Makefile PLIST distinfo

Log Message:
Update go118 to 1.18.9 (security release).

This minor release includes 2 security fixes following the security policy
<https://go.dev/security>:

- os, net/http: avoid escapes from os.DirFS and http.Dir on Windows

  The os.DirFS function and http.Dir type provide access to a tree of files
  rooted at a given directory. These functions permitted access to Windows
  device files under that root. For example, os.DirFS("C:/tmp").Open("COM1")
  would open the COM1 device.  Both os.DirFS and http.Dir only provide
  read-only filesystem access.

  In addition, on Windows, an os.DirFS for the directory \ (the root of the
  current drive) can permit a maliciously crafted path to escape from the drive
  and access any path on the system.

  The behavior of os.DirFS("") has changed. Previously, an empty root was
  treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path
  "/tmp".  This now returns an error.

  This is CVE-2022-41720 and Go issue https://go.dev/issue/56694.

- net/http: limit canonical header cache by bytes, not entries

  An attacker can cause excessive memory growth in a Go server accepting HTTP/2
  requests.

  HTTP/2 server connections contain a cache of HTTP header keys sent by the
  client. While the total number of entries in this cache is capped, an
  attacker sending very large keys can cause the server to allocate
  approximately 64 MiB per open connection.

  This issue is also fixed in golang.org/x/net/http2, for users manually
  configuring HTTP/2.

  Thanks to Josselin Costanzi for reporting this issue.

  This is CVE-2022-41717 and Go issue https://go.dev/issue/56350.


To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 pkgsrc/lang/go/version.mk
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/go118/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/go118/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/lang/go118/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/version.mk
diff -u pkgsrc/lang/go/version.mk:1.165 pkgsrc/lang/go/version.mk:1.166
--- pkgsrc/lang/go/version.mk:1.165     Tue Nov  1 17:41:11 2022
+++ pkgsrc/lang/go/version.mk   Thu Dec  8 10:28:44 2022
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.165 2022/11/01 17:41:11 bsiegert Exp $
+# $NetBSD: version.mk,v 1.166 2022/12/08 10:28:44 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.3
-GO118_VERSION= 1.18.8
+GO118_VERSION= 1.18.9
 GO117_VERSION= 1.17.13
 GO116_VERSION= 1.16.15
 GO110_VERSION= 1.10.8

Index: pkgsrc/lang/go118/Makefile
diff -u pkgsrc/lang/go118/Makefile:1.5 pkgsrc/lang/go118/Makefile:1.6
--- pkgsrc/lang/go118/Makefile:1.5      Sat Sep 17 10:13:56 2022
+++ pkgsrc/lang/go118/Makefile  Thu Dec  8 10:28:44 2022
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2022/09/17 10:13:56 bsiegert Exp $
+# $NetBSD: Makefile,v 1.6 2022/12/08 10:28:44 bsiegert Exp $
 
 .include "../../lang/go/version.mk"
 .include "../../lang/go/bootstrap.mk"
 
 GOVERSSUFFIX=  118
 
-DISTNAME=      go${GO${GOVERSSUFFIX}_VERSION:S/.rc/rc/}.src
+DISTNAME=      go${GO${GOVERSSUFFIX}_VERSION}.src
 PKGNAME=       go${GOVERSSUFFIX}-${GO${GOVERSSUFFIX}_VERSION}
 CATEGORIES=    lang
 MASTER_SITES=  https://storage.googleapis.com/golang/

Index: pkgsrc/lang/go118/PLIST
diff -u pkgsrc/lang/go118/PLIST:1.8 pkgsrc/lang/go118/PLIST:1.9
--- pkgsrc/lang/go118/PLIST:1.8 Wed Oct  5 09:51:52 2022
+++ pkgsrc/lang/go118/PLIST     Thu Dec  8 10:28:44 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2022/10/05 09:51:52 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.9 2022/12/08 10:28:44 bsiegert Exp $
 bin/go${GOVERSSUFFIX}
 bin/gofmt${GOVERSSUFFIX}
 go118/AUTHORS
@@ -772,6 +772,7 @@ go118/pkg/${GO_PLATFORM}/internal/poll.a
 go118/pkg/${GO_PLATFORM}/internal/profile.a
 go118/pkg/${GO_PLATFORM}/internal/race.a
 go118/pkg/${GO_PLATFORM}/internal/reflectlite.a
+go118/pkg/${GO_PLATFORM}/internal/safefilepath.a
 go118/pkg/${GO_PLATFORM}/internal/singleflight.a
 go118/pkg/${GO_PLATFORM}/internal/syscall/execenv.a
 go118/pkg/${GO_PLATFORM}/internal/syscall/unix.a
@@ -1504,6 +1505,7 @@ go118/src/cmd/compile/internal/test/issu
 go118/src/cmd/compile/internal/test/lang_test.go
 go118/src/cmd/compile/internal/test/logic_test.go
 go118/src/cmd/compile/internal/test/mulconst_test.go
+go118/src/cmd/compile/internal/test/race.go
 go118/src/cmd/compile/internal/test/reproduciblebuilds_test.go
 go118/src/cmd/compile/internal/test/shift_test.go
 go118/src/cmd/compile/internal/test/ssa_test.go
@@ -6075,6 +6077,10 @@ go118/src/internal/reflectlite/swapper.g
 go118/src/internal/reflectlite/tostring_test.go
 go118/src/internal/reflectlite/type.go
 go118/src/internal/reflectlite/value.go
+go118/src/internal/safefilepath/path.go
+go118/src/internal/safefilepath/path_other.go
+go118/src/internal/safefilepath/path_test.go
+go118/src/internal/safefilepath/path_windows.go
 go118/src/internal/singleflight/singleflight.go
 go118/src/internal/singleflight/singleflight_test.go
 go118/src/internal/syscall/execenv/execenv_default.go
@@ -10825,6 +10831,7 @@ go118/test/fixedbugs/issue55122.go
 go118/test/fixedbugs/issue55122b.go
 go118/test/fixedbugs/issue5515.go
 go118/test/fixedbugs/issue5581.go
+go118/test/fixedbugs/issue55889.go
 go118/test/fixedbugs/issue5607.go
 go118/test/fixedbugs/issue5609.go
 go118/test/fixedbugs/issue5614.dir/rethinkgo.go

Index: pkgsrc/lang/go118/distinfo
diff -u pkgsrc/lang/go118/distinfo:1.9 pkgsrc/lang/go118/distinfo:1.10
--- pkgsrc/lang/go118/distinfo:1.9      Tue Nov  1 17:26:17 2022
+++ pkgsrc/lang/go118/distinfo  Thu Dec  8 10:28:44 2022
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.9 2022/11/01 17:26:17 bsiegert Exp $
+$NetBSD: distinfo,v 1.10 2022/12/08 10:28:44 bsiegert Exp $
 
-BLAKE2s (go1.18.8.src.tar.gz) = 73aaf4a5384d4fe3a69ccef38a5193465c4f65bb2a71212fd757fda811a2293a
-SHA512 (go1.18.8.src.tar.gz) = 8fb257e2e53bf887948735c03a68748c55e2ceda3c6593cabb0c70e82b0e4e8f6ecd8aece5e6b1b96e4589a53ae557f8d9d6dea093efff0ae657afad25b05b22
-Size (go1.18.8.src.tar.gz) = 22873390 bytes
+BLAKE2s (go1.18.9.src.tar.gz) = 7d4fe3422e28522e585083187d140b4ddc98f4f1fbc625ea358f78a2434c683c
+SHA512 (go1.18.9.src.tar.gz) = 5f47442cc8ffbbc8c709ed5e8a6f3c5e19fc7979a21dc9883bb27096ffd165a08106ed01e2239c95c9276517081f967be9581f7c45272f9b2dcfced096eb8a67
+Size (go1.18.9.src.tar.gz) = 22878625 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