From: Kim F. Storm Date: Tue, 30 Nov 2004 00:31:38 +0000 (+0000) Subject: New defines to enable buffer overrun checking. X-Git-Tag: ttn-vms-21-2-B4~3559 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cdcf58d8eb7602b03aa7530bb533984ee976ac8f;p=emacs.git New defines to enable buffer overrun checking. (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST) (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add. --- diff --git a/src/lisp.h b/src/lisp.h index 3cbdea0f0bf..2111fe333e6 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -35,6 +35,22 @@ Boston, MA 02111-1307, USA. */ be compared to the sizes recorded in Lisp strings. */ #define GC_CHECK_STRING_BYTES 1 + +/* Define this to check for short string overrun. */ + +#define GC_CHECK_STRING_OVERRUN 1 + +/* Define this to check the string free list. */ + +#define GC_CHECK_STRING_FREE_LIST 1 + +/* Define this to check for malloc buffer overrun. */ + +#define XMALLOC_OVERRUN_CHECK 1 + +/* Define this to check for errors in cons list. */ +/* #define GC_CHECK_CONS_LIST 1 */ + #endif /* 0 */