Skip to content

Commit

Permalink
Fix format string vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Aug 13, 2012
1 parent 86c4f03 commit ffe9d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/print/print.c
Expand Up @@ -386,7 +386,7 @@ R_API void r_print_hexdiff(RPrint *p, ut64 aa, const ut8* _a, ut64 ba, const ut8
p->printf (" ");
for (j=0;j<16;j++) {
r_print_cursor (p, i+j, 1);
p->printf (C (a, b));
p->printf ("%s", C (a, b));
r_print_cursor (p, i+j, 0);
}
p->printf (" %c 0x%08"PFMT64x" ", linediff, ba+i);
Expand All @@ -398,7 +398,7 @@ R_API void r_print_hexdiff(RPrint *p, ut64 aa, const ut8* _a, ut64 ba, const ut8
p->printf (" ");
for (j=0;j<16;j++) {
r_print_cursor (p, i+j, 1);
p->printf (C (b, a));
p->printf ("%s", C (b, a));
r_print_cursor (p, i+j, 0);
}
p->printf ("\n");
Expand Down

0 comments on commit ffe9d07

Please sign in to comment.