Mercurial > emacs
changeset 58633:55d668830eed
New defines to enable buffer overrun checking.
(GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
(XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 30 Nov 2004 00:31:38 +0000 |
parents | c0b9a69b829b |
children | 95d38c47c806 |
files | src/lisp.h |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lisp.h Tue Nov 30 00:31:09 2004 +0000 +++ b/src/lisp.h Tue Nov 30 00:31:38 2004 +0000 @@ -35,6 +35,22 @@ 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 */