KRB5_INT16_MAX

Ezra Peisach epeisach at MIT.EDU
Fri Apr 17 06:33:33 EDT 2009


mattd wrote:
> KRB5_INT16_MAX is #define'd in include/krb5/krb5.hin as 65535 -
> shouldn't this be 32767 instead?
>
> - Matt D.
> _______________________________________________
> krbdev mailing list             krbdev at mit.edu
> https://mailman.mit.edu/mailman/listinfo/krbdev
>   
It should be 32767 - based on 0x7f, or stdint.h, etc...

Our usage is:

./include/krb5/krb5.hin:#define KRB5_INT16_MAX 65535
./include/krb5/krb5.hin:#define KRB5_INT16_MIN  (-KRB5_INT16_MAX-1)
./lib/gssapi/krb5/init_sec_context.c:            if (credmsg.length+28 > 
KRB5_INT16_MAX) {

(and KRB5_INT16_MIN is not used....)


So - it should be ok....

Ezra




More information about the krbdev mailing list