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
I also think that the aforementioned variables should be set to be greater than 0. Because if the aforementioned variables are less than 0, it will cause the program to fail. Since we're already performing checks, why not do it even better?
zhaohaihang
pushed a commit
to zhaohaihang/ristretto
that referenced
this issue
Oct 28, 2024
Found while reading through the code:
https://github.com/dgraph-io/ristretto/blob/c67e07994f911dbf42104f568c83a29830e88236/cache.go#L169-L174
The checks are fine, but given that these are
int64
s they could be <0 which the checks won't catch unless I'm missing something.The text was updated successfully, but these errors were encountered: