mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-10 15:33:04 +00:00
Address morning ret2libc comments
This commit is contained in:
parent
57c9ab3da6
commit
30867cb834
@ -2225,13 +2225,12 @@ struct addr_t* MACH0_(get_entrypoint)(struct MACH0_(obj_t)* bin) {
|
||||
if (!entry) {
|
||||
return NULL;
|
||||
}
|
||||
if (bin->entry) {
|
||||
entry->addr = entry_to_vaddr (bin);
|
||||
entry->offset = addr_to_offset (bin, entry->addr);
|
||||
entry->haddr = sdb_num_get (bin->kv, "mach0.entry.offset", 0);
|
||||
sdb_num_set (bin->kv, "mach0.entry.vaddr", entry->addr, 0);
|
||||
sdb_num_set (bin->kv, "mach0.entry.paddr", bin->entry, 0);
|
||||
}
|
||||
entry->addr = entry_to_vaddr (bin);
|
||||
entry->offset = addr_to_offset (bin, entry->addr);
|
||||
entry->haddr = sdb_num_get (bin->kv, "mach0.entry.offset", 0);
|
||||
sdb_num_set (bin->kv, "mach0.entry.vaddr", entry->addr, 0);
|
||||
sdb_num_set (bin->kv, "mach0.entry.paddr", bin->entry, 0);
|
||||
|
||||
if (entry->offset == 0) {
|
||||
int i;
|
||||
for (i = 0; i < bin->nsects; i++) {
|
||||
|
@ -168,7 +168,9 @@ R_API RFlagItem *r_flag_item_clone(RFlagItem *item) {
|
||||
}
|
||||
|
||||
R_API void r_flag_item_free(RFlagItem *item) {
|
||||
r_return_if_fail (item);
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
free (item->color);
|
||||
free (item->comment);
|
||||
free (item->alias);
|
||||
|
Loading…
Reference in New Issue
Block a user