Go 1.20.2 发布了~
2023-3-9 15:1:51 Author: Go语言中文网(查看原文) 阅读量:20 收藏

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

今早,Go 官方发布了两个小版本:Go1.20.2 和 Go1.19.7,主要是因为有一个安全问题。不过同时进行了一些 Bugfix。

安全问题是 crypto/elliptic 包。

  • crypto/elliptic: incorrect P-256 ScalarMult and ScalarBaseMult results

    The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve).

    This does not impact usages of crypto/ecdsa or crypto/ecdh.

详见 issue:https://go.dev/issue/58647。

此外,还进行了一些 Bug 的修复,Go1.20.2 版本 Close 的 issue 有 17 个 :https://github.com/golang/go/issues?q=milestone%3AGo1.20.2+label%3ACherryPickApproved,1.19.7 版本 Close 的 issue 有 7 个:https://github.com/golang/go/issues?q=milestone%3AGo1.19.7+label%3ACherryPickApproved。

跟之前一样,Go 语言中文网准备好了安装包:https://studygolang.com/dl。

你也可以使用你喜欢的方式升级试用,或用官方给出的方式试用:


推荐阅读

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


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