diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-05-20 22:10:04 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-05-20 22:10:04 (GMT) |
commit | 8cf0f3612c5fcb940b0a80ab6325a5c08e060430 (patch) | |
tree | 523f22de616a490fc50065f2d5b152b936de1b52 /src/format/dex/pool.h | |
parent | 44478b28bc5c4a8f9b064d0ae6936662e9ad11a9 (diff) |
Increased security by checking the requested index when reading a pool item.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@162 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/dex/pool.h')
-rw-r--r-- | src/format/dex/pool.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/format/dex/pool.h b/src/format/dex/pool.h index 263a807..56fd99c 100644 --- a/src/format/dex/pool.h +++ b/src/format/dex/pool.h @@ -27,7 +27,6 @@ #include "dex.h" #include "../../analysis/routine.h" -#include "../../common/leb128.h" @@ -39,7 +38,7 @@ GOpenidaType *get_type_from_dex_pool(const GDexFormat *, uint16_t); /* Extrait une représentation de classe d'une table DEX. */ -GOpenidaType *get_class_from_dex_pool(const GDexFormat *, uint16_t); +GOpenidaType *get_class_from_dex_pool(const GDexFormat *, uint32_t); @@ -49,7 +48,7 @@ GOpenidaType *get_class_from_dex_pool(const GDexFormat *, uint16_t); GBinVariable *get_field_from_dex_pool(const GDexFormat *, uint32_t); /* Extrait une représentation de routine d'une table DEX. */ -GBinRoutine *get_routine_from_dex_pool(const GDexFormat *, uleb128_t); +GBinRoutine *get_routine_from_dex_pool(const GDexFormat *, uint32_t); |