mirror of
https://github.com/decompals/wibo.git
synced 2025-12-13 07:06:18 +00:00
Zero out TIB
Not for any particular reason, but having it contain non-deterministic stack garbage seems like a bad idea.
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -345,6 +345,7 @@ int main(int argc, char **argv) {
|
||||
tib.peb->ProcessParameters = (RTL_USER_PROCESS_PARAMETERS*)calloc(sizeof(RTL_USER_PROCESS_PARAMETERS), 1);
|
||||
|
||||
struct user_desc tibDesc;
|
||||
memset(&tibDesc, 0, sizeof tibDesc);
|
||||
tibDesc.entry_number = 0;
|
||||
tibDesc.base_addr = (unsigned int) &tib;
|
||||
tibDesc.limit = 0x1000;
|
||||
|
||||
Reference in New Issue
Block a user