Mercurial > hg > xemacs-beta
diff lib-src/ChangeLog @ 3556:2161ac78b41e
[xemacs-hg @ 2006-08-11 17:37:17 by james]
Prevent potential buffer overflows. Also enable use of shutdown() on linux.
<m37j1jez4n.fsf@jerrypc.cs.usu.edu>
author | james |
---|---|
date | Fri, 11 Aug 2006 17:37:18 +0000 |
parents | 9b466a04e78e |
children | edbb1ff43fe0 |
line wrap: on
line diff
--- a/lib-src/ChangeLog Fri Aug 11 01:30:23 2006 +0000 +++ b/lib-src/ChangeLog Fri Aug 11 17:37:18 2006 +0000 @@ -1,3 +1,13 @@ +2006-08-08 Jerry James <james@xemacs.org> + + * gnuslib.c (disconnect_from_server): shutdown() has been fine on + Linux for a long time now; use it. Also, don't use length to + access the buffer unless it is positive, not just nonzero. + * gnuclient.c (filename_expand): Initialize the last array element + to get a valid C string in case of overflow. Use strncat to avoid + buffer overruns. + * gnuclient.c (main): Use strncpy to avoid buffer overruns. + 2006-07-21 Stephen J. Turnbull <stephen@xemacs.org> * etags.c: Xemacs -> XEmacs.