Browse Source

refix as in the example from http://www.hardened-php.net/eaccelerator-0.9.3-hash-fix.patch

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@58 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
2fe9441b3c
  1. 8
      processor/hashtable.m4
  2. 4
      processor/head.m4

8
processor/hashtable.m4

@ -74,7 +74,13 @@ define(`DEF_HASH_TABLE_FUNC', `
IFCALCCOPY(`int bucketsize;')
#if defined(HARDENING_PATCH_HASH_PROTECT) && HARDENING_PATCH_HASH_PROTECT
DISPATCH(unsigned int, canary)
IFASM(`dst->canary = zend_hash_canary; DONE(canary)', `
dnl elseif
IFRESTORE(`dst->canary = zend_hash_canary; DONE(canary)', `
dnl else
DISPATCH(unsigned int, canary)
')
')
#endif
DISPATCH(uint, nTableSize)
DISPATCH(uint, nTableMask)

4
processor/head.m4

@ -15,6 +15,10 @@ divert(0)
#include "stack.h"
#include "xcache_globals.h"
#if defined(HARDENING_PATCH_HASH_PROTECT) && HARDENING_PATCH_HASH_PROTECT
extern unsigned int zend_hash_canary;
#endif
define(`SIZEOF_zend_uint', `sizeof(zend_uint)')
define(`COUNTOF_zend_uint', `1')
define(`SIZEOF_int', `sizeof(int)')

Loading…
Cancel
Save