Go 1.19.1 发布了:看看要不要升级!!!
2022-9-7 08:53:29 Author: Go语言中文网(查看原文) 阅读量:42 收藏

点击上方蓝色“Go语言中文网”关注,每天一起学 Go

大家好,Go 官方发布了 Go1.19.1 和 Go1.18.6,这是两个小版本,主要包括安全更新和一些 bug 修复,这次一共修复了 20 个 issue。

首先是两个安全更新:

  • net/http 包:handle server errors after sending GOAWAY

    A closing HTTP/2 server connection could hang forever waiting for a clean shutdown that was preempted by a subsequent fatal error. This failure mode could be exploited to cause a denial of service.

  • net/url 包:JoinPath does not strip relative path components in all circumstances

    JoinPath and URL.JoinPath would not remove ../ path components appended to a relative path. For example, JoinPath("https://go.dev", "../go") returned the URL https://go.dev/../go, despite the JoinPath documentation stating that ../ path elements are cleaned from the result.

其他的 issue 列表见:https://github.com/golang/go/issues?q=milestone%3AGo1.19.1+label%3ACherryPickApproved,文末点击「阅读原文」可以直达该页面。

Go语言中文网为大家准备好了最新的安装包:https://studygolang.com/dl。


推荐阅读

福利
我为大家整理了一份从入门到进阶的Go学习资料礼包,包含学习建议:入门看什么,进阶看什么。关注公众号 「polarisxu」,回复 ebook 获取;还可以回复「进群」,和数万 Gopher 交流学习。


文章来源: http://mp.weixin.qq.com/s?__biz=MzAxMTA4Njc0OQ==&mid=2651453398&idx=1&sn=96b9af5f2adc5a2479f0c2c66e00315e&chksm=80bb2924b7cca032228ee088ddf403d2140045b045aa9a9e23ca2efa6e005830f0aee838b08b#rd
如有侵权请联系:admin#unsafe.sh