| 1 |
/*********************************************************************** |
| 2 |
Copyright (C) 1986-2000 by |
| 3 |
|
| 4 |
F6FBB - Jean-Paul ROUBELAT |
| 5 |
[email protected] |
| 6 |
|
| 7 |
This program is free software: you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation, either version 3 of the License, or |
| 10 |
(at your option) any later version. |
| 11 |
|
| 12 |
This program is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
You should have received a copy of the GNU General Public License |
| 17 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 |
|
| 19 |
Parts of code have been taken from many other softwares. |
| 20 |
Thanks for the help. |
| 21 |
***********************************************************************/ |
| 22 |
/* |
| 23 |
* FILE: |
| 24 |
* ufortify.h |
| 25 |
* |
| 26 |
* DESCRIPTION: |
| 27 |
* User options for fortify. Changes to this file require fortify.c to be |
| 28 |
* recompiled, but nothing else. |
| 29 |
*/ |
| 30 |
|
| 31 |
#define FORTIFY_STORAGE |
| 32 |
|
| 33 |
#define FORTIFY_BEFORE_SIZE 16 /* Bytes to allocate before block */ |
| 34 |
#define FORTIFY_BEFORE_VALUE 0xA3 /* Fill value before block */ |
| 35 |
|
| 36 |
#define FORTIFY_AFTER_SIZE 16 /* Bytes to allocate after block */ |
| 37 |
#define FORTIFY_AFTER_VALUE 0xA5 /* Fill value after block */ |
| 38 |
|
| 39 |
#define FILL_ON_MALLOC /* Nuke out malloc'd memory */ |
| 40 |
#define FILL_ON_MALLOC_VALUE 0xA7 /* Value to initialize with */ |
| 41 |
|
| 42 |
#define FILL_ON_FREE /* free'd memory is cleared */ |
| 43 |
#define FILL_ON_FREE_VALUE 0xA9 /* Value to de-initialize with */ |
| 44 |
|
| 45 |
#define CHECK_ALL_MEMORY_ON_MALLOC |
| 46 |
#define CHECK_ALL_MEMORY_ON_FREE |
| 47 |
#define PARANOID_FREE |
| 48 |
|
| 49 |
#define WARN_ON_MALLOC_FAIL /* A debug is issued on a failed malloc */ |
| 50 |
#define WARN_ON_ZERO_MALLOC /* A debug is issued on a malloc(0) */ |
| 51 |
#define WARN_ON_FALSE_FAIL /* See Fortify_SetMallocFailRate */ |
| 52 |
#define WARN_ON_SIZE_T_OVERFLOW/* Watch for breaking the 64K limit in */ |
| 53 |
/* some braindead architectures... */ |
| 54 |
|
| 55 |
#define FORTIFY_LOCK() |
| 56 |
#define FORTIFY_UNLOCK() |