aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2012-09-29 00:56:25 -0700
committerWladimir J. van der Laan <[email protected]>2012-09-29 00:56:25 -0700
commit3b2eb49db949e03e4eab5f0e656bd33ba0806227 (patch)
tree79c1f44cbc66982513a2da72b162fb935cd99cb3 /src/util.h
parentMerge pull request #1871 from jgarzik/wallet-deadcode (diff)
parentRemove stack randomization (diff)
downloaddiscoin-3b2eb49db949e03e4eab5f0e656bd33ba0806227.tar.xz
discoin-3b2eb49db949e03e4eab5f0e656bd33ba0806227.zip
Merge pull request #1883 from sipa/norandstack
Remove stack randomization
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/util.h b/src/util.h
index 54b53582b..745c3d786 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)
{