Open ankon opened 5 months ago
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 int64s they could be <0 which the checks won't catch unless I'm missing something.
int64
This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.
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.