Pe-Loader-Sample icon indicating copy to clipboard operation
Pe-Loader-Sample copied to clipboard

Randomly memory allocation failure.

Open Advego opened this issue 12 years ago • 1 comments

if(!pe->pNtHeaders->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC].Size) {

EMSG("Failed to map required memory address, need relocation to continue"); EMSG("[WARNING] Forcing re-use of mapped memory");

pe->dwMapBase = (DWORD) pe->pNtHeaders->OptionalHeader.ImageBase;

Because your project have random ImageBase and because of ASLR in Windows 7 and higher, sometimes allocating memory for PE being loaded might be causing intersect with base PE heap address space, and, therefore , loader process failure. This might be avoided by fixing project ImageBase at 0x400000 or reducing default heap size.

Advego avatar Apr 05 '14 05:04 Advego

*have - has

Advego avatar Apr 05 '14 05:04 Advego