mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 18:32:56 +00:00
fix out-of-bounds write in r_anal_reflines_str
This commit is contained in:
parent
e8ec0cf550
commit
4b59bc6181
@ -227,8 +227,10 @@ R_API char* r_anal_reflines_str(void *core, ut64 addr, int opts) {
|
||||
lw-=l;
|
||||
memset (pfx, ' ', sizeof (pfx));
|
||||
if (lw>=sizeof (pfx)) lw = sizeof (pfx);
|
||||
pfx[lw - 1] = 0;
|
||||
if (lw>0) str = r_str_prefix (str, pfx);
|
||||
if (lw > 0) {
|
||||
pfx[lw - 1] = 0;
|
||||
str = r_str_prefix (str, pfx);
|
||||
}
|
||||
}
|
||||
}
|
||||
str = r_str_concat (str, (dir==1)? "-> "
|
||||
|
Loading…
x
Reference in New Issue
Block a user