i am using rob's lockdown library, http://www.onlythechosen.com/lockdown-src.zip
it worked on 32 bit linux for a long time, but on 64 bit linux, i get:
Program received signal SIGSEGV, Segmentation fault.
0x00007fad822fe52b in pe_load () from lockdown/ld.so
(gdb)
it seems the problem is in lines 67-78 in pe_load.c:
fclose(f);
dosheader = (PIMAGE_DOS_HEADER) data;
if (dosheader->e_magic != IMAGE_DOS_SIGNATURE) {
return NULL;
}
ntheader = (PIMAGE_NT_HEADERS) (data + dosheader->e_lfanew);
if (ntheader->Signature != IMAGE_NT_SIGNATURE) {
return NULL;
}
baseaddr = (char *)malloc(ntheader->OptionalHeader.SizeOfImage);
...
if anyone is familiar with what this does, i'd be thankful for a hint how to fix it.
even better if rob could have a look at it :)
I sent a message to rob already with the topic link. Hope he gets here and check :P.