`locate -S' may display wrong results for the statistics on large databases. Fix: use a different type, e.g. uintmax_t
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=cfa3856452b6a52cfb8fef44c86da7488b81447d commit cfa3856452b6a52cfb8fef44c86da7488b81447d Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2022-01-19 20:34:33 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> CommitDate: 2022-01-20 06:27:08 +0000 Use 64-bit integers for database statistics This fix (harmless) integer overflows for larger partitions (>2TB) PR: 223023 usr.bin/locate/locate/fastfind.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)