Skip to content

Commit

Permalink
Fix crash in 'C{fd..}.', reproducible with r2dec (radareorg#16823)
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored May 14, 2020
1 parent ae45c06 commit ecb3fc4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/core/cmd_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,9 @@ static int cmd_meta_others(RCore *core, const char *input) {
}
ut64 size;
RAnalMetaItem *mi = r_meta_get_at (core->anal, addr, type, &size);
if (!mi) {
break;
}
if (type == 's') {
char *esc_str;
bool esc_bslash = core->print->esc_bslash;
Expand Down
8 changes: 8 additions & 0 deletions test/db/cmd/cmd_meta
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
NAME=Cf. crash
FILE=-
CMDS=<<EOF
Cf.
EOF
EXPECT=<<EOF
EOF
RUN

NAME=vars commenting
FILE=malloc://1024
Expand Down

0 comments on commit ecb3fc4

Please sign in to comment.