Skip to content

Commit

Permalink
Fix za t (zignature type) command
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Apr 6, 2021
1 parent 614abb2 commit e298517
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion librz/core/cmd_descs/cmd_descs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3376,6 +3376,7 @@ static const RzCmdDescDetailEntry zign_add_Zignature_space_types_detail_entries[
{ .text = "g", .arg_str = NULL, .comment = "graph metrics" },
{ .text = "o", .arg_str = NULL, .comment = "original offset" },
{ .text = "r", .arg_str = NULL, .comment = "references" },
{ .text = "t", .arg_str = NULL, .comment = "types" },
{ .text = "x", .arg_str = NULL, .comment = "cross references" },
{ .text = "h", .arg_str = NULL, .comment = "bbhash (hashing of function basic blocks)" },
{ .text = "v", .arg_str = NULL, .comment = "vars (and args)" },
Expand Down Expand Up @@ -3404,6 +3405,7 @@ static const RzCmdDescDetailEntry zign_add_Examples_detail_entries[] = {
{ .text = "za", .arg_str = " foo o 0x08048123", .comment = "" },
{ .text = "za", .arg_str = " foo c this is a comment (base64?)", .comment = "" },
{ .text = "za", .arg_str = " foo r sym.imp.strcpy sym.imp.sprintf sym.imp.strlen", .comment = "" },
{ .text = "za", .arg_str = " foo t func.sym.imp.strlen.ret=int func.sym.imp.strlen.args=1 func.sym.imp.strlen.arg.0=\"char *,str\"", .comment = "" },
{ .text = "za", .arg_str = " foo h 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae", .comment = "" },
{ 0 },
};
Expand All @@ -3414,7 +3416,7 @@ static const RzCmdDescDetail zign_add_details[] = {
{ .name = "Examples", .entries = zign_add_Examples_detail_entries },
{ 0 },
};
static const char *zign_add_type_choices[] = { "a", "b", "c", "n", "g", "o", "r", "x", "h", "v", NULL };
static const char *zign_add_type_choices[] = { "a", "b", "c", "n", "g", "o", "r", "t", "x", "h", "v", NULL };
static const RzCmdDescArg zign_add_args[] = {
{
.name = "zigname",
Expand Down
8 changes: 7 additions & 1 deletion librz/core/cmd_descs/cmd_zign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ commands:
- g
- o
- r
- t
- x
- h
- v
Expand All @@ -88,6 +89,8 @@ commands:
comment: "original offset"
- text: "r"
comment: "references"
- text: "t"
comment: "types"
- text: "x"
comment: "cross references"
- text: "h"
Expand Down Expand Up @@ -134,6 +137,9 @@ commands:
- text: "za"
arg_str: " foo r sym.imp.strcpy sym.imp.sprintf sym.imp.strlen"
comment: ""
- text: "za"
arg_str: " foo t func.sym.imp.strlen.ret=int func.sym.imp.strlen.args=1 func.sym.imp.strlen.arg.0=\"char *,str\""
comment: ""
- text: "za"
arg_str: " foo h 2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
comment: ""
Expand Down Expand Up @@ -288,4 +294,4 @@ commands:
- name: from
type: RZ_CMD_ARG_TYPE_NUM
- name: to
type: RZ_CMD_ARG_TYPE_NUM
type: RZ_CMD_ARG_TYPE_NUM

0 comments on commit e298517

Please sign in to comment.