Go 1.19.1 和 Go1.18.6 发布了
2022-9-7 18:12:1 Author: mp.weixin.qq.com(查看原文) 阅读量:11 收藏

大家好,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=MzAxNzY0NDE3NA==&mid=2247490315&idx=1&sn=4f513033fdd31b822382f4f0053f80b3&chksm=9be334eaac94bdfc89e798f9f9e0558fb5c82755af2a3271eeb5ce267284e18f18b94b5328e6#rd
如有侵权请联系:admin#unsafe.sh