Android Dex 结构体定义不准确
作者: hzshang创建于 2023年3月14日更新于 2024年9月30日
The DexClassDataHeader structure shown on the wiki is defined as follows: struct DexClassDataHeader { u4 staticFieldsSize; /* number of static fields / u4 instanceFieldsSize; / number of instance fields / u4 directMethodsSize; / number of direct methods / u4 virtualMethodsSize; / number of virtual methods */ }; However, according to the Android documentation https://source.android.com/docs/core/runtime/dex-format?hl=zh-cn#class-data-item, the header definition type should be ueb128.
内容来源: ctf-wiki/ctf-wiki