File: ufortify.h

package info (click to toggle)
lp-solve 5.5-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,528 kB
  • ctags: 4,655
  • sloc: ansic: 45,809; yacc: 556; sh: 64; makefile: 53
file content (63 lines) | stat: -rw-r--r-- 1,822 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * FILE:
 *   ufortify.h
 *
 * DESCRIPTION:
 *   User options for fortify. Changes to this file require fortify.c to be
 * recompiled, but nothing else.
 */

#ifndef __UFORTIFY_H__
#define __UFORTIFY_H__

#define FORTIFY_STORAGE

#if defined MSDOS || defined __BORLANDC__ || defined __HIGHC__
# define KNOWS_POINTER_TYPE
#endif

#define FORTIFY_WAIT_FOR_KEY         /* Pause after message            */

#if !defined FORTIFY_BEFORE_SIZE
# define FORTIFY_BEFORE_SIZE     16  /* Bytes to allocate before block */
#endif

#if !defined FORTIFY_BEFORE_VALUE
# define FORTIFY_BEFORE_VALUE  0xA3  /* Fill value before block        */
#endif

#if !defined FORTIFY_AFTER_SIZE
# define FORTIFY_AFTER_SIZE      16  /* Bytes to allocate after block  */
#endif

#if !defined FORTIFY_AFTER_VALUE
# define FORTIFY_AFTER_VALUE   0xA5  /* Fill value after block         */
#endif

#define FILL_ON_MALLOC               /* Nuke out malloc'd memory       */

#if !defined FILL_ON_MALLOC_VALUE
# define FILL_ON_MALLOC_VALUE  0xA7  /* Value to initialize with       */
#endif

#define FILL_ON_FREE                 /* free'd memory is cleared       */

#if !defined FILL_ON_FREE_VALUE
# define FILL_ON_FREE_VALUE    0xA9  /* Value to de-initialize with    */
#endif

#define FORTIFY_CheckInterval 1      /* seconds */
/* #define CHECK_ALL_MEMORY_ON_MALLOC */
#define CHECK_ALL_MEMORY_ON_FREE
#define PARANOID_FREE

#define WARN_ON_MALLOC_FAIL    /* A debug is issued on a failed malloc */
#define WARN_ON_ZERO_MALLOC    /* A debug is issued on a malloc(0)     */
#define WARN_ON_FALSE_FAIL     /* See Fortify_SetMallocFailRate        */
#define WARN_ON_SIZE_T_OVERFLOW/* Watch for breaking the 64K limit in  */
                               /* some braindead architectures...      */

#define FORTIFY_LOCK()
#define FORTIFY_UNLOCK()

#endif