You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @chixuan777, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot to help other users to understand this issue. We encourage you to describe your issue in English which is more friendly to other users.
ParamFlowChecker has an int overflow risk
ParamFlowChecker
int toAddCount = (int)((passTime * tokenCount) / (rule.getDurationInSec() * 1000));
This part of the code, if it occurs, the flow is very small (or pulse), but the tokenCount configuration is very large, the problem of int overflow occurs.
ParamFlowChecker基于sentinel-parameter-flow-control1.6.1
int toAddCount = (int)((passTime * tokenCount) / (rule.getDurationInSec() * 1000));
这部分代码,如果出现,流量极小(or脉冲),但是tokenCount配置又很大的情况,出现int溢出的问题
The text was updated successfully, but these errors were encountered: