changeset 58630:8494a8d7029e

*** empty log message ***
author Kim F. Storm <storm@cua.dk>
date Tue, 30 Nov 2004 00:30:37 +0000
parents 68449d290f2b
children 7c469d30a12d
files lisp/ChangeLog src/ChangeLog
diffstat 2 files changed, 28 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Nov 29 23:26:08 2004 +0000
+++ b/lisp/ChangeLog	Tue Nov 30 00:30:37 2004 +0000
@@ -10,15 +10,14 @@
 
 2004-11-26  Teodor Zlatanov  <tzz@lifelogs.com>
 
-	* simple.el (next-error-buffer-p): allow for inclusive and
-	exclusive tests for finding a buffer
-	(next-error-find-buffer): pass the exclusive and inclusive tests
-	to next-error-buffer-p
-
-	* replace.el (occur-next-error): switch to the Occur buffer when
-	appropriate, and use the exclusive filter to
-	next-error-find-buffer to do it.  Use the absolute value of the
-	motion amount.
+	* simple.el (next-error-buffer-p): Allow for inclusive and
+	exclusive tests for finding a buffer.
+	(next-error-find-buffer): Pass the exclusive and inclusive tests
+	to next-error-buffer-p.
+
+	* replace.el (occur-next-error): Switch to the Occur buffer when
+	appropriate, use the exclusive filter to next-error-find-buffer to
+	do it.  Use the absolute value of the motion amount.
 
 2004-11-29  Kenichi Handa  <handa@m17n.org>
 
--- a/src/ChangeLog	Mon Nov 29 23:26:08 2004 +0000
+++ b/src/ChangeLog	Tue Nov 30 00:30:37 2004 +0000
@@ -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.