Empty reg profile for null plugin (#8944)

This commit is contained in:
Maijin 2017-12-03 17:12:18 +01:00 committed by GitHub
parent 18a61de043
commit 8893fbd3a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2014 - jn */
/* radare - LGPL - Copyright 2014 - jn, maijin */
#include <r_anal.h>
#include <r_types.h>
@ -10,6 +10,10 @@ static int null_anal(RAnal *anal, RAnalOp *op, ut64 addr, const ut8 *data, int l
return op->size = 1;
}
static int null_set_reg_profile(RAnal* anal){
return r_reg_set_profile_string(anal->reg, "");
}
RAnalPlugin r_anal_plugin_null = {
.name = "null",
.desc = "Fallback/Null analysis plugin",
@ -17,6 +21,7 @@ RAnalPlugin r_anal_plugin_null = {
.license = "LGPL3",
.bits = 8|16|32|64, /* is this used? */
.op = &null_anal,
.set_reg_profile = &null_set_reg_profile,
};
#ifndef CORELIB