[krbdev.mit.edu #3911] SVN Commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Sun Jun 25 23:13:56 EDT 2006


pull up r18180:18182 from trunk

 r18180 at cathode-dark-space:  raeburn | 2006-06-20 19:59:11 -0400
 ticket: new
 subject: getaddrinfo code uses vars outside of storage duration
 
 The calls to gethostbyname_r and friends were wrapped in macros that declared
 automatic variables for the auxiliary storage needed, but the pointers returned
 by the functions would be used outside of that scope, when the storage would no
 longer be valid.
 
 Changed the macro interfaces to define new types for the auxiliary storage, and
 add a new argument to the macros referring to that storage.  Changed call sites
 accordingly.
 
 
 r18181 at cathode-dark-space:  raeburn | 2006-06-20 19:59:56 -0400
 ticket: 18180
 
 Revert an untested change that wasn't supposed to go into this ticket.
 
 r18182 at cathode-dark-space:  raeburn | 2006-06-20 20:12:03 -0400
 ticket: 3911
 
 Revert part of previous changes: Move temporary values that don't need
 longer storage duration, like error codes, back into GET_*_BY_* macros.
 

Commit By: tlyu



Revision: 18225
Changed Files:
U   branches/krb5-1-5/src/util/support/fake-addrinfo.c




More information about the krb5-bugs mailing list