Skip to content

Commit

Permalink
Fix a null assert in java parser and bring back the libr.pc.acr
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 15, 2018
1 parent 4440d9f commit 5a0ca70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions libr/libr.pc.acr
@@ -0,0 +1,11 @@
prefix=@PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libr
Description: radare framework libraries
Version: 0.1
Requires:
Libs: -L${libdir} -lr_core -lr_lang -lr_search -lr_asm -lr_util -lr_reg
Cflags: -I${includedir}/libr
4 changes: 3 additions & 1 deletion shlr/java/class.c
Expand Up @@ -2824,7 +2824,9 @@ R_API RList *r_bin_java_get_lib_names(RBinJavaObj *bin) {
if (cp_obj && cp_obj->tag == R_BIN_JAVA_CP_CLASS &&
(bin->cf2.this_class != cp_obj->info.cp_class.name_idx || !is_class_interface (bin, cp_obj))) {
char *name = r_bin_java_get_item_name_from_bin_cp_list (bin, cp_obj);
r_list_append (lib_names, name);
if (name) {
r_list_append (lib_names, name);
}
}
}
return lib_names;
Expand Down

0 comments on commit 5a0ca70

Please sign in to comment.