* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
[bpt/emacs.git] / lib-src / ChangeLog
index d056b1a..8d46a37 100644 (file)
        result might not fit in 'int'.
        (set_local_socket): Do not assume uid fits in 'int'.
 
+       * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
+       to avoid potential buffer overflow issues on typical 64-bit hosts.
+       (whatlen_max): New static var.
+       (main): Avoid buffer overflow if subsidiary command length is
+       greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its
+       result might not fit in 'int'.
+
 2011-07-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        Assume freestanding C89 headers, string.h, stdlib.h.