1
0
Fork 0

patch for hardening-patch

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@50 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2006-05-30 12:02:53 +00:00
parent 06413c7c2f
commit a97a4ef176
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@ define(`DEF_HASH_TABLE_FUNC', `
char *buf = emalloc(bufsize);
int keysize;
#if defined(HARDENING_PATCH_HASH_PROTECT) && HARDENING_PATCH_HASH_PROTECT
DONE(canary)
#endif
DONE(nTableSize)
DONE(nTableMask)
DONE(nNumOfElements)
@ -70,6 +73,9 @@ define(`DEF_HASH_TABLE_FUNC', `
IFCOPY(`uint n;')
IFCALCCOPY(`int bucketsize;')
#if defined(HARDENING_PATCH_HASH_PROTECT) && HARDENING_PATCH_HASH_PROTECT
DISPATCH(unsigned int, canary)
#endif
DISPATCH(uint, nTableSize)
DISPATCH(uint, nTableMask)
DISPATCH(uint, nNumOfElements)