인스트럭션포인터 레지스터(IP)를 0으로 세팅하는 어셈코드를 넣으면 될듯 합니다.
관련 내용은 인터넷에 찾아보시면 있을듯 합니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
인스트럭션포인터
인스트럭션포인터 레지스터(IP)를 0으로 세팅하는 어셈코드를 넣으면 될듯 합니다.
관련 내용은 인터넷에 찾아보시면 있을듯 합니다.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.
펑션포인터에 0을
펑션포인터에 0을 넣어두고 call 하면 되겠군요.
두줄까지
두줄까지 필요한가요?
((void (*)(void))0)();
그냥 이러면 될거 같은데...
정확하게는 jump가 아니라 call이니까 return address는 0번지에서 적절히 처리해 주면 될 듯 합니다.
Taeho Oh ( ohhara@postech.edu , ohhara@plus.or.kr ) http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology ) http://www.postech.edu
Digital Media Professionals Inc. http://www.dmprof.com
Taeho Oh ( ohhara@postech.edu ) http://ohhara.sarang.net
Postech ( Pohang University of Science and Technology ) http://www.postech.edu
Alticast Corp. http://www.alticast.com
32비트
32비트 컴파일러에서만 쓸 수 있는 방법이긴 하지만...
이런 방법도 있습니다. printf는 빼주시면 됩니다. 직접 함수의 return address를 조작해서 jump 하는 방식입니다.
댓글 달기