mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 04:17:25 +00:00
Fix crash in dex parser
This commit is contained in:
parent
b0547831f1
commit
10052884ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user