diff options
author | Ingo Schwarze <schwarze@usta.de> | 2025-08-25 22:58:48 +0000 |
---|---|---|
committer | Alexander Ziaee <ziaee@FreeBSD.org> | 2025-08-25 23:02:27 +0000 |
commit | 93bc3d83a11a1dbebd264616d63af3dd32cc1c8c (patch) | |
tree | 36019c7cd933059c3e129b7c9fca2e813561ea3a /krb5/lib/gssapi/spnego/Makefile.inc | |
parent | a4d738d7830576e5a62317bb67cc2a949cc7ba5a (diff) |
Avoid implicitly converting a potentially negative page offset
to size_t and then back to int. While this was not a bug and the end
result was portably correct, Alexander Ziaee@ privately reported to me
that the GCC 14 in the FreeBSD Jenkins CI felt uneasy about it.
For clarity and readability, rewrite the truncation statement
to not mix signed and unsigned types, to not use explicit casts,
and make handling of the lower and upper cutoff more similar
to each other.
Fixes: 6410c1b51637 (mandoc: vendor import of upstream at 2025-07-27)
MFC after: 3 days
Reported by: ivy
Reviewed by: ivy
Differential Revision: https://reviews.freebsd.org/D52127
Diffstat (limited to 'krb5/lib/gssapi/spnego/Makefile.inc')
0 files changed, 0 insertions, 0 deletions