i have tried to read content of a memory address 0xfeafe000 and 0xfe9b000. i have used a few techinue but unable to do so.
i have tried following codes, they are-
1.
unsigned int *abar = (unsigned int *) 0x0feaf000;
printf("
%x",*abar);// got segmentation fault
2.
char txt[512];
memcpy(txt,(char *)0xfeafe000,sizeof(txt));
printf("%s",txt);// got segmentation fault
is there anather way to resolve this or any flaws in my attempts??
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…