diff options
author | Dan Bornstein <danfuzz@android.com> | 2011-03-09 17:07:10 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-09 17:07:10 -0800 |
commit | af06c40f24a00e0662899405d24b2813cc0690a4 (patch) | |
tree | 214baa13d679b784fc4293de66678d824e708478 /libdex/DexFile.h | |
parent | c632e86945a77dc9e1fc99005fb99741c9f6cfa4 (diff) | |
parent | d4bd92bdc81b5eee09db7f752020a0d435683f7b (diff) | |
download | android_dalvik-af06c40f24a00e0662899405d24b2813cc0690a4.tar.gz android_dalvik-af06c40f24a00e0662899405d24b2813cc0690a4.tar.bz2 android_dalvik-af06c40f24a00e0662899405d24b2813cc0690a4.zip |
Merge "Better class name validation." into dalvik-dev
Diffstat (limited to 'libdex/DexFile.h')
-rw-r--r-- | libdex/DexFile.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libdex/DexFile.h b/libdex/DexFile.h index fd865e225..798d60771 100644 --- a/libdex/DexFile.h +++ b/libdex/DexFile.h @@ -1035,6 +1035,15 @@ bool dexIsValidMemberName(const char* s); /* Return whether the given string is a valid type descriptor. */ bool dexIsValidTypeDescriptor(const char* s); +/* Return whether the given string is a valid internal-form class + * name, with components separated either by dots or slashes as + * specified. A class name is like a type descriptor, except that it + * can't name a primitive type (including void). In terms of syntax, + * the form is either (a) the name of the class without adornment + * (that is, not bracketed by "L" and ";"); or (b) identical to the + * type descriptor syntax for array types. */ +bool dexIsValidClassName(const char* s, bool dotSeparator); + /* Return whether the given string is a valid reference descriptor. This * is true if dexIsValidTypeDescriptor() returns true and the descriptor * is for a class or array and not a primitive type. */ |