Skip to content

Commit

Permalink
Fix possible buffer overflow when scanning address
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil authored and radare committed Jun 26, 2018
1 parent a42ab66 commit 2050d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/core/disasm.c
Expand Up @@ -1860,7 +1860,7 @@ static void ds_show_flags(RDisasmState *ds) {
continue;
}
if (!strncmp (flag->name, "case.", 5)) {
sscanf (flag->name + 5, "%d.%s", &case_current, addr);
sscanf (flag->name + 5, "%d.%63s", &case_current, addr);
ut64 saddr = r_num_math (core->num, addr);
if (case_start == -1) {
switch_addr = saddr;
Expand Down

0 comments on commit 2050d8c

Please sign in to comment.