]> git.eshelyaron.com Git - emacs.git/commit
* print.c (float_to_string): Detect width overflow more reliably.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2011 19:14:47 +0000 (12:14 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 29 Aug 2011 19:14:47 +0000 (12:14 -0700)
commitaca216ff01bab0741e718036a3c6d887994904c6
tree68a321d62dccfc5f6c8787ca176346c78c870266
parenta66ff6d8b7f1ba4a8ef4d52f7d66b7804ba97091
* print.c (float_to_string): Detect width overflow more reliably.

(print_object): Make sprintf buffer a bit bigger, to avoid potential
buffer overrun.  Don't assume list length fits in 'int'.  Treat
print length of 0 as 0, not as infinity; to be consistent with other
uses of print length in this function.  Don't overflow print length
index.  Don't assume hash table size fits in 'long', or that
vectorlike size fits in 'unsigned long'.
src/ChangeLog
src/print.c