diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-09-28 21:50:04 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-09-28 21:53:28 +0200 |
commit | 2e3ffb2d8234b12314d3e48a44e3e1cdfdaec182 (patch) | |
tree | 48e4eb208c9ee49db5bbac354d87a6986e0a2ded /src/util.h | |
parent | 842a31ad1bea930c7ae2adcea929e3b8f0febfed (diff) |
Remove stack randomization
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util.h b/src/util.h index 54b53582b5..745c3d786a 100644 --- a/src/util.h +++ b/src/util.h @@ -396,20 +396,6 @@ bool SoftSetBoolArg(const std::string& strArg, bool fValue); -// Randomize the stack to help protect against buffer overrun exploits -#define IMPLEMENT_RANDOMIZE_STACK(ThreadFn) \ - { \ - static char nLoops; \ - if (nLoops <= 0) \ - nLoops = GetRand(20) + 1; \ - if (nLoops-- > 1) \ - { \ - ThreadFn; \ - return; \ - } \ - } - - template<typename T1> inline uint256 Hash(const T1 pbegin, const T1 pend) { |