Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/bin/date



Module Name:    src
Committed By:   cbiere
Date:           Sun Feb  4 22:21:53 UTC 2007

Modified Files:
        src/bin/date: netdate.c

Log Message:
 * Prevent out-of-bounds read tsptype if a packet with
   an unknown msg_type is received.
 * Check the received packet size.
 * Use strncpy() instead of strlcpy() so that we don't
   send gibberish from the stack.
 * No need to bind().
 * htons()/htonl() use uint16_t/uint32_t not u_short/u_long.


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/bin/date/netdate.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index