]> git.eshelyaron.com Git - emacs.git/commit
* etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int,
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Aug 2011 23:55:41 +0000 (16:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 28 Aug 2011 23:55:41 +0000 (16:55 -0700)
commit9250f758254937f43a621a2371e3433ce7daa573
tree8fe10179efc6a408c41c9452c9bddec3f3398a88
parent17107bb698f82bb5b9c8a732cd6b3faaad4d7af6
* 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'.
lib-src/ChangeLog
lib-src/etags.c