diff options
| author | Kim F. Storm | 2004-11-30 00:31:38 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-11-30 00:31:38 +0000 |
| commit | cdcf58d8eb7602b03aa7530bb533984ee976ac8f (patch) | |
| tree | b5764c880dbf50558bd2897c7975e19f4c024db5 | |
| parent | 68db37aa53b01c2c7b62ea3b86c4e4ce467a6c9e (diff) | |
| download | emacs-cdcf58d8eb7602b03aa7530bb533984ee976ac8f.tar.gz emacs-cdcf58d8eb7602b03aa7530bb533984ee976ac8f.zip | |
New defines to enable buffer overrun checking.
(GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
(XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
| -rw-r--r-- | src/lisp.h | 16 |
1 files changed, 16 insertions, 0 deletions
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. */ | |||
| 35 | be compared to the sizes recorded in Lisp strings. */ | 35 | be compared to the sizes recorded in Lisp strings. */ |
| 36 | 36 | ||
| 37 | #define GC_CHECK_STRING_BYTES 1 | 37 | #define GC_CHECK_STRING_BYTES 1 |
| 38 | |||
| 39 | /* Define this to check for short string overrun. */ | ||
| 40 | |||
| 41 | #define GC_CHECK_STRING_OVERRUN 1 | ||
| 42 | |||
| 43 | /* Define this to check the string free list. */ | ||
| 44 | |||
| 45 | #define GC_CHECK_STRING_FREE_LIST 1 | ||
| 46 | |||
| 47 | /* Define this to check for malloc buffer overrun. */ | ||
| 48 | |||
| 49 | #define XMALLOC_OVERRUN_CHECK 1 | ||
| 50 | |||
| 51 | /* Define this to check for errors in cons list. */ | ||
| 52 | /* #define GC_CHECK_CONS_LIST 1 */ | ||
| 53 | |||
| 38 | #endif /* 0 */ | 54 | #endif /* 0 */ |
| 39 | 55 | ||
| 40 | 56 | ||