Go 1.20.2 發(fā)布了~
今早,Go 官方發(fā)布了兩個小版本:Go1.20.2 和 Go1.19.7,主要是因?yàn)橛幸粋€安全問題。不過同時進(jìn)行了一些 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。
此外,還進(jìn)行了一些 Bug 的修復(fù),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 語言中文網(wǎng)準(zhǔn)備好了安裝包:https://studygolang.com/dl。
你也可以使用你喜歡的方式升級試用,或用官方給出的方式試用:

推薦閱讀
