mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
// We moved to non-ASLR at some point to get consistent hashes.
|
||||
// Exploiters quickly moved to hardcoding fixed addresses each week.
|
||||
// This is only here to move the code around a little bit each week.
|
||||
#include "stdafx.h"
|
||||
#include "Security/RandomConstant.h"
|
||||
#include "Security/JunkCode.h"
|
||||
|
||||
template <int N> __forceinline void useless()
|
||||
{
|
||||
junk<(N*(RBX_BUILDSEED%16) + __LINE__*N*(RBX_BUILDSEED%15) + N*N) % 17>();
|
||||
useless<N-1>();
|
||||
useless<N-1>();
|
||||
}
|
||||
template<> __forceinline void useless<0>() {}
|
||||
|
||||
// VS2012 really doesn't get why a function that is unused should exist.
|
||||
extern "C"
|
||||
{
|
||||
#pragma comment (linker, "/export:_unusedPadding")
|
||||
void unusedPadding()
|
||||
{
|
||||
useless<9>();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user