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
Thank you for reporting. You are right. The overflow will occur especially when usize is 32 bit or smaller. I will set a reasonable max value to skt_capacity to avoid the overflow.
Hello,
First of all thank you for the very nice work !
There seems to be a multiply overflow that could be handled at the line referenced below.
moka/src/sync/base_cache.rs
Line 395 in 76b06af
This could be done either by returning an error type, or by maxing the value of the cache capacity to
usize::max_value() / 32
The text was updated successfully, but these errors were encountered: