Skip to content

Commit 74c583b

Browse files
committed
fix attempt for RANGES
1 parent a8af9cb commit 74c583b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

accel/tcg/cpu-exec.c

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,14 @@ void afl_setup(void) {
394394
} else {
395395
n->start = strtoull(pt2, NULL, 16);
396396
n->end = strtoull(pt3, NULL, 16);
397-
n->name = NULL;
397+
if (n->start && n->end) {
398+
n->name = NULL;
399+
} else {
400+
have_names = 1;
401+
n->start = (target_ulong)-1;
402+
n->end = 0;
403+
n->name = strdup(pt1);
404+
}
398405
}
399406

400407
afl_instr_code = n;
@@ -428,7 +435,14 @@ void afl_setup(void) {
428435
} else {
429436
n->start = strtoull(pt2, NULL, 16);
430437
n->end = strtoull(pt3, NULL, 16);
431-
n->name = NULL;
438+
if (n->start && n->end) {
439+
n->name = NULL;
440+
} else {
441+
have_names = 1;
442+
n->start = (target_ulong)-1;
443+
n->end = 0;
444+
n->name = strdup(pt1);
445+
}
432446
}
433447

434448
afl_instr_code = n;

0 commit comments

Comments
 (0)