From 2e3ffb2d8234b12314d3e48a44e3e1cdfdaec182 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Fri, 28 Sep 2012 21:50:04 +0200 Subject: Remove stack randomization --- src/util.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/util.h') 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 inline uint256 Hash(const T1 pbegin, const T1 pend) { -- cgit v1.2.3