Page MenuHomeFreeBSD

kadm5: add -Wno-alloc-size-larger-than
ClosedPublic

Authored by ivy on Jul 27 2025, 7:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 28 2025, 11:21 AM
Unknown Object (File)
Oct 27 2025, 3:27 AM
Unknown Object (File)
Oct 26 2025, 5:52 AM
Unknown Object (File)
Oct 25 2025, 5:11 PM
Unknown Object (File)
Oct 12 2025, 12:28 PM
Unknown Object (File)
Oct 12 2025, 12:28 PM
Unknown Object (File)
Oct 12 2025, 12:28 PM
Unknown Object (File)
Oct 12 2025, 1:30 AM
Subscribers

Details

Reviewers
None
Group Reviewers
krb5
Commits
rG624b7beed5ac: kadm5: add -Wno-alloc-size-larger-than
Summary

This trips the gcc build in kadm5/srv/svr_principal.c:

/home/ivy/src/bsd/gcc/crypto/krb5/src/lib/kadm5/srv/svr_principal.c: In function 'apply_keysalt_policy':
/home/ivy/src/bsd/gcc/crypto/krb5/src/lib/kadm5/srv/svr_principal.c:208:14: error: argument 1 range [2147483648, 4294967295] exceeds maximum object size 2147483647 [-Werror=alloc-size-larger-than=]

208 |     subset = calloc(n_ks_tuple, sizeof(*subset));
    |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65778
Build 62661: arc lint + arc unit

Event Timeline

ivy requested review of this revision.Jul 27 2025, 7:13 PM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 3 2025, 11:13 PM
This revision was automatically updated to reflect the committed changes.