]> git.ipfire.org Git - thirdparty/krb5.git/commit
Avoid unsigned/signed comparison in loop condition
authorBen Kaduk <kaduk@mit.edu>
Wed, 27 Jun 2012 19:38:47 +0000 (15:38 -0400)
committerBen Kaduk <kaduk@mit.edu>
Tue, 3 Jul 2012 04:43:23 +0000 (00:43 -0400)
commitf59478241686d75ece48e8eff6099006cf0bb1b2
tree0b9f31ab66c127a9a7f5723524bd94d5a7659613
parente4a3c43c403a24fcf21a2a67eddf831032ab7ec4
Avoid unsigned/signed comparison in loop condition

The gid_len length is declared as an unsigned int, and loop
index 'i' is a signed int.  This could manifest as an infinite
loop if gid_len is very large.  In practice, gid_len should be small,
but make 'i' the same type for consistency.
src/lib/rpc/svc_auth_unix.c