Fix crash in 'C{fd..}.', reproducible with r2dec (#16823)

This commit is contained in:
pancake 2020-05-14 11:02:41 +02:00 committed by GitHub
parent ae45c06ae3
commit ecb3fc4b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -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;

View File

@ -1,3 +1,11 @@
NAME=Cf. crash
FILE=-
CMDS=<<EOF
Cf.
EOF
EXPECT=<<EOF
EOF
RUN
NAME=vars commenting
FILE=malloc://1024