I am using the lastest commit. When I call DobbyHook function, it always faild and print error log.
[!] [/home/Dobby/source/MemoryAllocator/NearMemoryAllocator.cc:198:allocateNearBlock][near memory allocator] allocate near block failed (0x8, 0x400e10, 0x80000000)
[!] [/home/Dobby/source/TrampolineBridge/Trampoline/x64/trampoline_x64.cc:22:allocate_indirect_stub]Not found near forward stub
In NearMemoryAllocator::allocateNearBlockFromDefaultAllocator and NearMemoryAllocator::allocateNearBlockFromUnusedRegion and method
min_valid_addr = pos - search_range; // if pos < search_range, and min_valid_addr will be a large value,this maybe a bug
max_valid_addr = pos + search_range;
Modify according to the following example, it run normal:
Environment: RedHat 7.5 (x64)
I am using the lastest commit. When I call DobbyHook function, it always faild and print error log.
In NearMemoryAllocator::allocateNearBlockFromDefaultAllocator and NearMemoryAllocator::allocateNearBlockFromUnusedRegion and method
Modify according to the following example, it run normal: