diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-29 00:56:25 -0700 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2012-09-29 00:56:25 -0700 |
commit | 3b2eb49db949e03e4eab5f0e656bd33ba0806227 (patch) | |
tree | 79c1f44cbc66982513a2da72b162fb935cd99cb3 /src/util.h | |
parent | 3e37e7eca4efccaf5ac637f5a5abd2697ff7b93a (diff) | |
parent | 2e3ffb2d8234b12314d3e48a44e3e1cdfdaec182 (diff) |
Merge pull request #1883 from sipa/norandstack
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) { |