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 e7877b2e78..1e44f509f1 100644 --- a/runtime/dex_file.h +++ b/runtime/dex_file.h @@ -722,6 +722,7 @@ class DexFile { // const CodeItem* GetCodeItem(const uint32_t code_off) const { + DCHECK_LT(code_off, size_) << "Code item offset larger then maximum allowed offset"; if (code_off == 0) { return nullptr; // native or abstract method } else { |