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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gout/filter/retry.go
Lines 92 to 100 in 5d2c07e
GOARCH=386
int
MaxWaitTime > time.Second * 4
Line 97 in 5d2c07e
temp
int32
rand.Intn(int(temp))
建议修改 rand.Intn 到 rand.Int63n
rand.Intn
rand.Int63n
相关问题 : Mrs4s/go-cqhttp#373
The text was updated successfully, but these errors were encountered:
ok。我加些32位平台的测试用例。
Sorry, something went wrong.
在v0.1.3版本已经修复。issue先关闭,如有问题,可重新打开。
No branches or pull requests
gout/filter/retry.go
Lines 92 to 100 in 5d2c07e
当
GOARCH=386
时,int
类型为 4 字节, 此时如果设置MaxWaitTime > time.Second * 4
的话会造成gout/filter/retry.go
Line 97 in 5d2c07e
temp
大于int32
的最大值, 在转换后出现负数 直到rand.Intn(int(temp))
出现panic.建议修改
rand.Intn
到rand.Int63n
相关问题 : Mrs4s/go-cqhttp#373
The text was updated successfully, but these errors were encountered: