Skip to content

Commit

Permalink
fix #2954 - oob read in dex.c
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored and XVilka committed Aug 24, 2022
1 parent 6a47eeb commit 7692751
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions librz/bin/format/dex/dex.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ static char *dex_resolve_proto_id(RzBinDex *dex, const char *name, ut32 proto_id
rz_strbuf_append(sb, "(");
for (ut32 i = 0; i < proto_id->type_list_size; ++i) {
ut32 type_idx = proto_id->type_list[i];
if (type_idx >= dex->type_ids_size) {
continue;
}

const DexString *param = dex_resolve_string_id_native(dex, dex->types[type_idx]);
if (!param) {
Expand Down

0 comments on commit 7692751

Please sign in to comment.