Detours icon indicating copy to clipboard operation
Detours copied to clipboard

UNINITIALIZED READ while executing detours (withdll.exe) with dr memory

Open gevorgyaned opened this issue 10 months ago • 0 comments

Hi I was trying to check on segmantation fault I was receiving while executing my program with withdll.exe (I was recieving segfault on exit function), tried to run it with DrMemory, here is the result

Error #1: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:814]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.922 in thread 21972
Note: instruction: cmp    0x30(%rsp) %r14

Error #2: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:826]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.922 in thread 21972
Note: instruction: cmp    0x30(%rsp) %r15

Error #3: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:838]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.922 in thread 21972
Note: instruction: cmp    0x30(%rsp) %r15

Error #4: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:851]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.922 in thread 21972
Note: instruction: cmp    0x30(%rsp) %r14

Error #5: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:861]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.938 in thread 21972
Note: instruction: cmp    0x30(%rsp) %rsi

Error #6: UNINITIALIZED READ: reading 0x000000000014df14-0x000000000014df18 4 byte(s) within 0x000000000014df10-0x000000000014df18
# 0 DetourCopyPayloadToProcess                [e:\3rd_party_64\detours\src\creatwth.cpp:867]
# 1 UpdateImports                             [e:\3rd_party_64\detours\src\creatwth.cpp:657]
# 2 DetourCreateProcessWithDllA               [e:\3rd_party_64\detours\src\creatwth.cpp:711]
# 3 main                                      [e:\3rd_party_64\detours\samples\withdll\withdll.cpp:222]
Note: @0:00:00.938 in thread 21972
Note: instruction: cmp    0x30(%rsp) %rbp

There is some uninitialized reads, I was wondering if this is intentional, or it is causing the segfault, thanks in advance

gevorgyaned avatar Apr 17 '25 14:04 gevorgyaned