mirror of
https://github.com/decompals/wibo.git
synced 2025-12-16 16:37:12 +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);
|
tib.peb->ProcessParameters = (RTL_USER_PROCESS_PARAMETERS*)calloc(sizeof(RTL_USER_PROCESS_PARAMETERS), 1);
|
||||||
|
|
||||||
struct user_desc tibDesc;
|
struct user_desc tibDesc;
|
||||||
|
memset(&tibDesc, 0, sizeof tibDesc);
|
||||||
tibDesc.entry_number = 0;
|
tibDesc.entry_number = 0;
|
||||||
tibDesc.base_addr = (unsigned int) &tib;
|
tibDesc.base_addr = (unsigned int) &tib;
|
||||||
tibDesc.limit = 0x1000;
|
tibDesc.limit = 0x1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user