IDA Bad Type修正

 在使用 IDA 調試 APK 時經常遇到變量無法識別的情況,需要在WatchView裏面手動加入類型轉換,如下圖


但是官方給出的 DalvikDbg 文檔裏如下說:

Attention! An incorrect type may cause the Dalvik VM to crash. There is not much we can do about it. Our
recommendation is to never cast an integer variable to an object type, the Dalvik VM usually crashes if we
do that. But the integer cast “(int)” is safe in practice. If the “object ID safety check” debugger option is
selected then IDA tries to prevent such a situation. The only drawback is that this option adds some
overhead.

大概意思就是說你一直用 (Object*)v0 這種東西放在監視器裏往下走的話很可能導致 IDA 崩潰,因爲這樣定義後IDA一直會去自動識別它,當這個值指飛了的時候就容易導致崩潰。有沒有方法可以一直監視這個值又不會崩潰呢,個人的經驗就是把 (Object*) 換成 (int*) 這樣 IDA也會去自動識別類,而且還不會崩潰,至少我現在還沒遇到過。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章