mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 17:40:34 +00:00
Fix last covs (leak regression in visual)
This commit is contained in:
parent
b29f5bb54a
commit
ad9f108926
@ -3528,8 +3528,10 @@ R_API void r_core_visual_title(RCore *core, int color) {
|
||||
if (tabsCount > 0) {
|
||||
const char *kolor = core->cons->pal.prompt;
|
||||
char *tabstring = visual_tabstring (core, kolor);
|
||||
title = r_str_append (title, tabstring);
|
||||
free (tabstring);
|
||||
if (tabstrings) {
|
||||
title = r_str_append (title, tabstring);
|
||||
free (tabstring);
|
||||
}
|
||||
#if 0
|
||||
// TODO: add an option to show this tab mode instead?
|
||||
const int curTab = core->visual.tab;
|
||||
@ -3548,6 +3550,7 @@ R_API void r_core_visual_title(RCore *core, int color) {
|
||||
}
|
||||
r_cons_print (title);
|
||||
free (title);
|
||||
free (address);
|
||||
}
|
||||
if (color) {
|
||||
r_cons_strcat (Color_RESET);
|
||||
|
@ -402,7 +402,7 @@ R_API void r_print_addr(RPrint *p, ut64 addr) {
|
||||
if (use_segoff) {
|
||||
ut32 s, a;
|
||||
a = addr & 0xffff;
|
||||
s = (addr - a) >> p->seggrn;
|
||||
s = (addr - a) >> (p? p->seggrn: 0);
|
||||
if (dec) {
|
||||
snprintf (space, sizeof (space), "%d:%d", s & 0xffff, a & 0xffff);
|
||||
white = r_str_pad (' ', 9 - strlen (space));
|
||||
@ -431,9 +431,9 @@ R_API void r_print_addr(RPrint *p, ut64 addr) {
|
||||
if (use_color) {
|
||||
const char *pre = PREOFF (offset): Color_GREEN;
|
||||
const char *fin = Color_RESET;
|
||||
if (p->flags & R_PRINT_FLAGS_RAINBOW) {
|
||||
if (p && p->flags & R_PRINT_FLAGS_RAINBOW) {
|
||||
// pre = r_cons_rgb_str_off (rgbstr, addr);
|
||||
if (p && p->cons && p->cons->rgbstr) {
|
||||
if (p->cons && p->cons->rgbstr) {
|
||||
static char rgbstr[32];
|
||||
pre = p->cons->rgbstr (rgbstr, sizeof (rgbstr), addr);
|
||||
}
|
||||
@ -441,7 +441,7 @@ R_API void r_print_addr(RPrint *p, ut64 addr) {
|
||||
if (dec) {
|
||||
printfmt ("%s%s%" PFMT64d "%s%c", pre, white, addr, fin, ch);
|
||||
} else {
|
||||
if (p->wide_offsets) {
|
||||
if (p && p->wide_offsets) {
|
||||
// TODO: make %016 depend on asm.bits
|
||||
printfmt ("%s0x%016" PFMT64x "%s%c", pre, addr, fin, ch);
|
||||
} else {
|
||||
@ -452,7 +452,7 @@ R_API void r_print_addr(RPrint *p, ut64 addr) {
|
||||
if (dec) {
|
||||
printfmt ("%s%" PFMT64d "%c", white, addr, ch);
|
||||
} else {
|
||||
if (p->wide_offsets) {
|
||||
if (p && p->wide_offsets) {
|
||||
// TODO: make %016 depend on asm.bits
|
||||
printfmt ("0x%016" PFMT64x "%c", addr, ch);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user