IDA decompilation failure - positive sp value has been found


IDA decompilation failure - positive sp value has been found

from:http://forum.ragezone.com/f923/ida-decompilation-failure-positive-sp-1133151/


RaGEZONE Recommends



Hi, i'm using leaked KMST .IDB file from @ Diamondo25 's thread  [LEAK] MapleStory Korea Test v.1029 raw EXE w/ debuggables
When i decompile functions in that .IDB file, most of them show up the error: " decompilation failure - adrr:positive sp value has been found". I already use google, but still not have any clear solution. Have anyone faced with that error and know how to resolve it?..Plz help me and guide me how to fix it. Or can you share the fixed .idb file for me plz. 

Re: IDA decompilation failure - positive sp value has been found

In IDA, go to Options->General. Within the options menu, check "Stack Pointer":


Click OK and head to IDA View. On the left, you'll notice that it includes the stack pointer next to each address:


Now, when a function has a messed up (negative) stack pointer (sp), you'll see a negative value there. For example 02C would be -02C. So, when you get that error, go to the address that says it has negative SP on. Look for a negative SP on the left and find the one above it. In the above example, if 02C were -02C, we'd want to modify the one above it in order to fix the -02C. So, right-click the address right above the negative sp address, and select "Change Stack Pointer".



A window will popup with the current value. In front of the current difference, put a negative sign ( - ) and click OK. It should re-adjust and fix the function. 



Hope that helps, good luck!
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值