This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+25
View File
@@ -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>();
}
};