mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 08:12:44 +00:00
Fix build and add snprintf_chk function signature
This commit is contained in:
parent
c32d85384d
commit
84564f54da
@ -2540,6 +2540,14 @@ func.snprintf.arg.2=const char *,format
|
||||
func.snprintf.arg.3=,...
|
||||
func.snprintf.ret=int
|
||||
|
||||
snprintf_chk=func
|
||||
func.snprintf_chk.args=4
|
||||
func.snprintf_chk.arg.0=char *,s
|
||||
func.snprintf_chk.arg.1=size_t,size
|
||||
func.snprintf_chk.arg.2=const char *,format
|
||||
func.snprintf_chk.arg.3=,...
|
||||
func.snprintf_chk.ret=int
|
||||
|
||||
sprintf=func
|
||||
func.sprintf.args=3
|
||||
func.sprintf.arg.0=char *,s
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* radare - LGPL - Copyright 2009-2018 - nibble, pancake */
|
||||
/* radare - LGPL - Copyright 2009-2019 - nibble, pancake */
|
||||
|
||||
#include <r_types.h>
|
||||
#include <r_util.h>
|
||||
@ -14,7 +14,7 @@ static int disassemble(RAsm *a, RAsmOp *op, const ut8 *buf, int len) {
|
||||
RBin *bin = a->binb.bin;
|
||||
RBinPlugin *plugin = bin && bin->cur && bin->cur->o ?
|
||||
bin->cur->o->plugin : NULL;
|
||||
if (plugin) {
|
||||
if (plugin && plugin->name) {
|
||||
if (!strcmp (plugin->name, "java")) { // XXX slow
|
||||
obj = bin->cur->o->bin_obj; //o;
|
||||
//eprintf("Handling: %s disasm.\n", b->cur.file);
|
||||
|
@ -1033,7 +1033,7 @@ R_API int r_main_rabin2(int argc, char **argv) {
|
||||
r_bin_set_baddr (bin, baddr);
|
||||
}
|
||||
if (rawstr == 2) {
|
||||
RBinFile *bf = r_core_bin_cur (&core);
|
||||
RBinFile *bf = r_bin_cur (core.bin);
|
||||
if (bf) {
|
||||
bf->strmode = rad;
|
||||
r_bin_dump_strings (bf, bin->minstrlen, bf->rawstr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user