We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
这是因为go 1.22版本中 base64.NewEncoding 函数对入参增加了新的验证:不可重复字符,参考:encoding: require unique alphabet for base32 and base64
源码定位 中 OPQRSTYZabcdefgABCDEFGHIJKLMNhijklmnopqrUVWXstuvwxyz01234567891q 包含重复字符 1 和 q,所以 程序运行至此会直接 panic。
OPQRSTYZabcdefgABCDEFGHIJKLMNhijklmnopqrUVWXstuvwxyz01234567891q
建议调整为使用 base64.StdEncoding.EncodeToString 函数。
base64.StdEncoding.EncodeToString
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用 go1.22 版本编译 openrasp 程序运行将报错:
这是因为go 1.22版本中 base64.NewEncoding 函数对入参增加了新的验证:不可重复字符,参考:encoding: require unique alphabet for base32 and base64
源码定位 中
OPQRSTYZabcdefgABCDEFGHIJKLMNhijklmnopqrUVWXstuvwxyz01234567891q
包含重复字符 1 和 q,所以 程序运行至此会直接 panic。建议调整为使用
base64.StdEncoding.EncodeToString
函数。The text was updated successfully, but these errors were encountered: