diff options
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6b0e575e36d..73d27f26d45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,19 @@ | |||
| 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | emacs_write: Return size_t, not ssize_t, to avoid overflow issues. | ||
| 4 | * gnutls.c, gnutls.h (emacs_gnutls_write): Return size_t, not ssize_t. | ||
| 5 | * sysdep.c, lisp.h (emacs_write): Likewise. | ||
| 6 | Without the above change, emacs_gnutls_write and emacs_write had | ||
| 7 | undefined behavior and would typically mistakenly report an error | ||
| 8 | when writing a buffer whose size exceeds SSIZE_MAX. | ||
| 9 | (emacs_read, emacs_write): Remove check for negative size, as the | ||
| 10 | Emacs source code has been audited now. | ||
| 11 | (emacs_write): Adjust to new signature, making the code look more | ||
| 12 | like that of emacs_gnutls_write. | ||
| 13 | * process.c (send_process): Adjust to the new signatures of | ||
| 14 | emacs_write and emacs_gnutls_write. Do not attempt to store | ||
| 15 | a byte offset into an 'int'; it might overflow. | ||
| 16 | |||
| 3 | * sound.c: Don't assume sizes fit in 'int'. | 17 | * sound.c: Don't assume sizes fit in 'int'. |
| 4 | (struct sound_device.period_size, alsa_period_size): | 18 | (struct sound_device.period_size, alsa_period_size): |
| 5 | Return size_t, not int. | 19 | Return size_t, not int. |