aboutsummaryrefslogtreecommitdiff
path: root/libdex
diff options
context:
space:
mode:
authorBen Gruver <bgruv@google.com>2013-05-08 13:29:36 -0700
committerAndrew Warfield <hiasant@gmail.com>2013-12-18 22:27:19 +0100
commit6392a9156f1ee870a3a78be9d053bf84103c0f68 (patch)
tree15bb63bbf32b02393bb293177ec802543d9b7855 /libdex
parente9b71ec59f9d402536ea7428f1b22e1fef333ec5 (diff)
Move verification of class access flags to libdex
Change-Id: I020a168cfff46e319b0bebb6c7477f0b4139c6de Conflicts: libdex/DexSwapVerify.cpp
Diffstat (limited to 'libdex')
-rw-r--r--libdex/DexSwapVerify.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdex/DexSwapVerify.cpp b/libdex/DexSwapVerify.cpp
index ff47ab5d1..227ec9c3c 100644
--- a/libdex/DexSwapVerify.cpp
+++ b/libdex/DexSwapVerify.cpp
@@ -912,9 +912,8 @@ static void* swapClassDefItem(const CheckState* state, void* ptr) {
SWAP_OFFSET4(item->classDataOff);
if ((item->accessFlags & ~ACC_CLASS_MASK) != 0) {
- // The VM specification says that unknown flags should be ignored.
- ALOGV("Bogus class access flags %x", item->accessFlags);
- item->accessFlags &= ACC_CLASS_MASK;
+ ALOGE("Bogus class access flags %x", item->accessFlags);
+ return NULL;
}
return item + 1;