From 6163f98020239f10e26b69d4a53e01d29c7279ea Mon Sep 17 00:00:00 2001 From: xctan Date: Sat, 23 Dec 2023 16:02:38 +0800 Subject: Cleanup some code (#1157) * Fix the size of random bytes in the auxiliary vector (AT_RANDOM) to 16 bytes * [ELFLOADER] Remove an unused statement --- src/tools/box64stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools/box64stack.c') diff --git a/src/tools/box64stack.c b/src/tools/box64stack.c index 44596b98..d1c55d07 100644 --- a/src/tools/box64stack.c +++ b/src/tools/box64stack.c @@ -77,7 +77,7 @@ void SetupInitialStack(x64emu_t *emu) uintptr_t p_random = real_getauxval(25); if(!p_random) { for (int i=0; i<4; ++i) - Push64(emu, random()); + Push32(emu, random()); p_random = R_RSP; } // align -- cgit 1.4.1