Watt-32 tcp/ip  2.2 dev-rel.10
ufortify.h
Go to the documentation of this file.
1 
9 #define FORTIFY_STORAGE /* storage for public functions */
10 
11 #define FORTIFY_ALIGNMENT sizeof(double) /* Byte alignment of all memory blocks */
12 
13 #define FORTIFY_BEFORE_SIZE 32 /* Bytes to allocate before block */
14 #define FORTIFY_BEFORE_VALUE 0xA3 /* Fill value before block */
15 
16 #define FORTIFY_AFTER_SIZE 32 /* Bytes to allocate after block */
17 #define FORTIFY_AFTER_VALUE 0xA5 /* Fill value after block */
18 
19 #define FORTIFY_FILL_ON_ALLOCATE /* Nuke out malloc'd memory */
20 #define FORTIFY_FILL_ON_ALLOCATE_VALUE 0xA7 /* Value to initialize with */
21 
22 #define FORTIFY_FILL_ON_DEALLOCATE /* free'd memory is cleared */
23 #define FORTIFY_FILL_ON_DEALLOCATE_VALUE 0xA9 /* Value to de-initialize with */
24 
25 #define FORTIFY_FILL_ON_CORRUPTION /* Nuke out corrupted memory */
26 
27 #define FORTIFY_CHECK_ALL_MEMORY_ON_ALLOCATE
28 #define FORTIFY_CHECK_ALL_MEMORY_ON_DEALLOCATE
29 #define FORTIFY_PARANOID_DEALLOCATE
30 
31 #define FORTIFY_WARN_ON_ZERO_MALLOC /* A debug is issued on a malloc(0) */
32 #define FORTIFY_FAIL_ON_ZERO_MALLOC /* A malloc(0) will fail */
33 
34 #define FORTIFY_WARN_ON_ALLOCATE_FAIL /* A debug is issued on a failed alloc */
35 #define FORTIFY_WARN_ON_FALSE_FAIL /* See Fortify_SetAllocateFailRate */
36 #define FORTIFY_WARN_ON_SIZE_T_OVERFLOW /* Watch for breaking the 64K limit in */
37  /* some braindead architectures... */
38 
39 #define FORTIFY_TRACK_DEALLOCATED_MEMORY
40 
41 /* Maximum amount of deallocated bytes to keep
42  */
43 #define FORTIFY_DEALLOCATED_MEMORY_LIMIT 1048576
44 #define FORTIFY_VERBOSE_WARN_WHEN_DISCARDING_DEALLOCATED_MEMORY
45 
46 #define FORTIFY_STRDUP /* if you use non-ANSI strdup() */
47 #define FORTIFY_GLOBAL_REPLACE /* Replace GlobalAlloc*() on Win32 */
48 
49 #define FORTIFY_DELETE_STACK_SIZE 256
50 
51 #ifdef __cplusplus /* C++ only options go here */
52 
53 /* #define FORTIFY_PROVIDE_ARRAY_NEW */
54 /* #define FORTIFY_PROVIDE_ARRAY_DELETE */
55 
56 /* #define FORTIFY_AUTOMATIC_LOG_FILE */
57  #define FORTIFY_LOG_FILENAME "fortify.log"
58  #include <iostream>
59  #define FORTIFY_FIRST_ERROR_FUNCTION cout << "\a\a\aFortify Hit Generated!\n"
60 
61 #endif /* __cplusplus */