diff options
| author | Paul Eggert | 2011-06-03 19:49:51 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-03 19:49:51 -0700 |
| commit | edaa182249601b0f7ee36f9863243b6919943982 (patch) | |
| tree | 1e399289df34c433f0471efdfb8a6da4ab05ac25 /src/ChangeLog | |
| parent | c6c3615fb23e438701da089110b645fc771f8087 (diff) | |
| download | emacs-edaa182249601b0f7ee36f9863243b6919943982.tar.gz emacs-edaa182249601b0f7ee36f9863243b6919943982.zip | |
Check for buffer and string overflow more precisely.
* buffer.h (BUF_BYTES_MAX): New macro.
* lisp.h (STRING_BYTES_MAX): New macro.
* alloc.c (Fmake_string):
* character.c (string_escape_byte8):
* coding.c (coding_alloc_by_realloc):
* doprnt.c (doprnt):
* editfns.c (Fformat):
* eval.c (verror):
Use STRING_BYTES_MAX, not MOST_POSITIVE_FIXNUM,
since they may not be the same number.
* editfns.c (Finsert_char):
* fileio.c (Finsert_file_contents):
Likewise for BUF_BYTES_MAX.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8333bf2dedd..374790b51f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,20 @@ | |||
| 1 | 2011-06-04 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Check for buffer and string overflow more precisely. | ||
| 4 | * buffer.h (BUF_BYTES_MAX): New macro. | ||
| 5 | * lisp.h (STRING_BYTES_MAX): New macro. | ||
| 6 | * alloc.c (Fmake_string): | ||
| 7 | * character.c (string_escape_byte8): | ||
| 8 | * coding.c (coding_alloc_by_realloc): | ||
| 9 | * doprnt.c (doprnt): | ||
| 10 | * editfns.c (Fformat): | ||
| 11 | * eval.c (verror): | ||
| 12 | Use STRING_BYTES_MAX, not MOST_POSITIVE_FIXNUM, | ||
| 13 | since they may not be the same number. | ||
| 14 | * editfns.c (Finsert_char): | ||
| 15 | * fileio.c (Finsert_file_contents): | ||
| 16 | Likewise for BUF_BYTES_MAX. | ||
| 17 | |||
| 3 | Use ptrdiff_t, not int, for sizes. | 18 | Use ptrdiff_t, not int, for sizes. |
| 4 | * image.c (slurp_file): Switch from int to ptrdiff_t. | 19 | * image.c (slurp_file): Switch from int to ptrdiff_t. |
| 5 | All uses changed. | 20 | All uses changed. |