mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
Fix #474 - Segfault in pc+backticks
This commit is contained in:
parent
9c1f5e73e1
commit
f29cbb5ad6
@ -1137,12 +1137,17 @@ next2:
|
||||
/* sub commands */
|
||||
ptr = strchr (cmd, '`');
|
||||
if (ptr) {
|
||||
int empty = 0;
|
||||
int oneline = 1;
|
||||
if (ptr[1]=='`') {
|
||||
memmove (ptr, ptr+1, strlen (ptr));
|
||||
oneline = 0;
|
||||
empty = 1;
|
||||
}
|
||||
ptr2 = strchr (ptr+1, '`');
|
||||
if (empty) {
|
||||
/* do nothing */
|
||||
} else
|
||||
if (!ptr2) {
|
||||
eprintf ("parse: Missing backtick in expression.\n");
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user