Lines Matching refs:addr

1068 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) {
1069 DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr;
1097 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) {
1098 DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr;
1127 u1* addr) {
1128 DexParameterAnnotationsItem* item = (DexParameterAnnotationsItem*) addr;
1164 u1* addr = (u1*) (item + 1);
1167 addr = swapFieldAnnotations(state, item->fieldsSize, addr);
1168 if (addr == NULL) {
1174 addr = swapMethodAnnotations(state, item->methodsSize, addr);
1175 if (addr == NULL) {
1181 addr = swapParameterAnnotations(state, item->parametersSize, addr);
1182 if (addr == NULL) {
1187 return addr;
1193 const u1* addr, u4 definingClass) {
1194 const DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr;
1213 u4 count, const u1* addr, u4 definingClass) {
1214 const DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr;
1233 u4 count, const u1* addr, u4 definingClass) {
1235 (DexParameterAnnotationsItem*) addr;
1294 const u1* addr = (const u1*) (item + 1);
1297 addr = crossVerifyFieldAnnotations(state, item->fieldsSize, addr,
1299 if (addr == NULL) {
1305 addr = crossVerifyMethodAnnotations(state, item->methodsSize, addr,
1307 if (addr == NULL) {
1313 addr = crossVerifyParameterAnnotations(state, item->parametersSize,
1314 addr, definingClass);
1315 if (addr == NULL) {
1320 return (void*) addr;
1703 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay);
1706 ALOGE("Bogus addr");
1710 if (addr >= code->insnsSize) {
1711 ALOGE("Invalid addr: %#x", addr);
1717 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay);
1724 if (addr >= code->insnsSize) {
1725 ALOGE("Invalid catch_all_addr: %#x", addr);
1801 ALOGE("Invalid insn_count: %#x (end addr %#x)",
2829 int dexSwapAndVerify(u1* addr, int len)
2842 pHeader = (DexHeader*) addr;
2886 state.fileStart = addr;
2887 state.fileEnd = addr + len;
2921 DexMapList* pDexMap = (DexMapList*) (addr + pHeader->mapOff);
2926 dexFileSetupBasicPointers(&dexFile, addr);
2955 int dexSwapAndVerifyIfNecessary(u1* addr, int len)
2957 if (memcmp(addr, DEX_OPT_MAGIC, 4) == 0) {
2962 if (memcmp(addr, DEX_MAGIC, 4) == 0) {
2964 return dexSwapAndVerify(addr, len);
2968 addr[0], addr[1], addr[2], addr[3]);