mirror of https://github.com/decompals/wibo.git
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:
parent
32887d2439
commit
b1dd93d7b7
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;
|
||||||
|
|
Loading…
Reference in New Issue