mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-20 12:53:45 +00:00
Fix asm.immstr
This commit is contained in:
parent
4c7044e4d4
commit
d43d2f738d
@ -2800,15 +2800,19 @@ static void ds_print_ptr(RDisasmState *ds, int len, int idx) {
|
||||
}
|
||||
|
||||
ds->chref = 0;
|
||||
if ((char)v > 0 && v >= '!' && v <= '~') {
|
||||
{
|
||||
ds->chref = (char)v;
|
||||
ALIGN;
|
||||
if (ds->immstr) {
|
||||
char *str = r_str_from_ut64 (r_read_ble64(&v, core->print->big_endian));
|
||||
ds_comment (ds, true, "; '%s'%s", str, nl);
|
||||
char *str = r_str_from_ut64 (r_read_ble64 (&v, core->print->big_endian));
|
||||
if (str && *str) {
|
||||
ds_comment (ds, true, "; '%s'%s", str, nl);
|
||||
}
|
||||
free (str);
|
||||
} else {
|
||||
ds_comment (ds, true, "; '%c'%s", (char)v, nl);
|
||||
if ((char)v > 0 && v >= '!' && v <= '~') {
|
||||
ds_comment (ds, true, "; '%c'%s", (char)v, nl);
|
||||
}
|
||||
}
|
||||
}
|
||||
RList *list = NULL;
|
||||
|
@ -143,6 +143,7 @@ R_API RFSRoot* r_fs_mount(RFS* fs, const char* fstype, const char* path, ut64 de
|
||||
}
|
||||
eprintf ("r_fs_mount: Invalid mount point\n");
|
||||
free (str);
|
||||
free (heapFsType);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -296,6 +296,7 @@ const char *msg =
|
||||
char *row = r_str_newf ("0x%08"PFMT64x" - 0x%08" PFMT64x" %s %s\n", from, to, perm, "");
|
||||
ptr = nl + 1;
|
||||
res = r_str_append (res, row);
|
||||
free (row);
|
||||
}
|
||||
free (wineDbgMaps);
|
||||
return res;
|
||||
|
@ -84,7 +84,7 @@ gpt_partition_map_iterate (grub_disk_t disk,
|
||||
sizeof (grub_gpt_partition_type_empty)))
|
||||
{
|
||||
/* Calculate the first block and the size of the partition. */
|
||||
memset (&part, 0, sizeof (sizeof (struct grub_partition)));
|
||||
memset (&part, 0, sizeof (struct grub_partition));
|
||||
part.start = grub_le_to_cpu64 (entry.start);
|
||||
part.len = (grub_le_to_cpu64 (entry.end)
|
||||
- grub_le_to_cpu64 (entry.start) + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user