Fix crash in dex parser

This commit is contained in:
pancake 2018-08-17 18:18:57 +02:00 committed by radare
parent b0547831f1
commit 10052884ec

View File

@ -421,7 +421,7 @@ static void dex_parse_debug_item(RBinFile *binfile, RBinDexObj *bin,
return;
}
ut8 opcode = *(p4++) & 0xff;
while (keep) {
while (keep && p4 < p4_end) {
switch (opcode) {
case 0x0: // DBG_END_SEQUENCE
keep = false;
@ -606,7 +606,6 @@ static void dex_parse_debug_item(RBinFile *binfile, RBinDexObj *bin,
binfile->sdb_addrinfo = sdb_new0 ();
}
RListIter *iter1;
struct dex_debug_position_t *pos;
// Loading the debug info takes too much time and nobody uses this afaik