diff options
Diffstat (limited to 'runtime/dex_file.h')
-rw-r--r-- | runtime/dex_file.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/dex_file.h b/runtime/dex_file.h index 7901ea7447..a9c24e66c1 100644 --- a/runtime/dex_file.h +++ b/runtime/dex_file.h @@ -575,6 +575,7 @@ class DexFile { return StringDataByIdx(GetProtoId(method_id.proto_idx_).shorty_idx_); } const char* GetMethodShorty(const MethodId& method_id, uint32_t* length) const { + // Using the UTF16 length is safe here as shorties are guaranteed to be ASCII characters. return StringDataAndUtf16LengthByIdx(GetProtoId(method_id.proto_idx_).shorty_idx_, length); } // Returns the number of class definitions in the .dex file. |