diff options
| author | Paul Eggert | 2011-08-29 12:14:47 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-29 12:14:47 -0700 |
| commit | aca216ff01bab0741e718036a3c6d887994904c6 (patch) | |
| tree | 68a321d62dccfc5f6c8787ca176346c78c870266 /src/ChangeLog | |
| parent | a66ff6d8b7f1ba4a8ef4d52f7d66b7804ba97091 (diff) | |
| download | emacs-aca216ff01bab0741e718036a3c6d887994904c6.tar.gz emacs-aca216ff01bab0741e718036a3c6d887994904c6.zip | |
* 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'.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 362109acbe6..d1d11df1900 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -77,6 +77,14 @@ | |||
| 77 | * nsterm.m ((NSSize)windowWillResize): Use esprintf, not sprintf, | 77 | * nsterm.m ((NSSize)windowWillResize): Use esprintf, not sprintf, |
| 78 | in case result does not fit in int. | 78 | in case result does not fit in int. |
| 79 | 79 | ||
| 80 | * print.c (float_to_string): Detect width overflow more reliably. | ||
| 81 | (print_object): Make sprintf buffer a bit bigger, to avoid potential | ||
| 82 | buffer overrun. Don't assume list length fits in 'int'. Treat | ||
| 83 | print length of 0 as 0, not as infinity; to be consistent with other | ||
| 84 | uses of print length in this function. Don't overflow print length | ||
| 85 | index. Don't assume hash table size fits in 'long', or that | ||
| 86 | vectorlike size fits in 'unsigned long'. | ||
| 87 | |||
| 80 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> | 88 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> |
| 81 | 89 | ||
| 82 | Integer and memory overflow issues (Bug#9196). | 90 | Integer and memory overflow issues (Bug#9196). |