We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac32ef7 commit e786dd5Copy full SHA for e786dd5
source/yail.cpp
@@ -436,8 +436,8 @@ namespace yail
436
const auto* shell_code_start = resolve_ilt(reinterpret_cast<void*>(&remote_shellcode));
437
const auto* shell_code_end = resolve_ilt(reinterpret_cast<void*>(&remote_shellcode_end));
438
auto size_of_shell_code = static_cast<std::size_t>(shell_code_end - shell_code_start);
439
- if (size_of_shell_code < 0x100)
440
- size_of_shell_code = 0x1000; // safety floor
+ if (size_of_shell_code < 0x100 || size_of_shell_code > 0x1000)
+ size_of_shell_code = 2400; // safety floor
441
442
constexpr std::size_t data_aligned = (sizeof(RemoteLoaderData) + 0xF) & ~0xF;
443
const std::size_t total_shellcode = data_aligned + size_of_shell_code;
0 commit comments