diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9f53a2b098b..d7184689033 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,23 @@ +2004-11-30 Kim F. Storm <storm@cua.dk> + + * lisp.h: New defines to enable buffer overrun checking. + (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST) + (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add. + + * alloc.c: Add more checks for buffer overruns. + (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header) + xmalloc_overrun_check_trailer, overrun_check_malloc) + overrun_check_realloc, overrun_check_free): Add. + (GC_STRING_EXTRA, string_overrun_pattern): Add. + (check_sblock, allocate_string_data, compact_small_strings): + Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN. + (check_cons_list): Condition on GC_CHECK_CONS_LIST. + (check_string_free_list): Add. + (allocate_string, sweep_strings): Call check_string_free_list. + + * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if + XMALLOC_OVERRUN_CHECK to avoid crash during load. + 2004-11-29 Kim F. Storm <storm@cua.dk> * fns.c (concat): Use SAFE_ALLOCA. |
