{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/3697","labels_url":"https://api.github.com/repos/radare/radare2/issues/3697/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/3697/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/3697/events","html_url":"https://github.com/radare/radare2/issues/3697","id":117278654,"number":3697,"title":"Failed to get correct segment vaddr for mach-o file.","user":{"login":"jingtaozf","id":132706,"avatar_url":"https://avatars.githubusercontent.com/u/132706?v=3","gravatar_id":"","url":"https://api.github.com/users/jingtaozf","html_url":"https://github.com/jingtaozf","followers_url":"https://api.github.com/users/jingtaozf/followers","following_url":"https://api.github.com/users/jingtaozf/following{/other_user}","gists_url":"https://api.github.com/users/jingtaozf/gists{/gist_id}","starred_url":"https://api.github.com/users/jingtaozf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingtaozf/subscriptions","organizations_url":"https://api.github.com/users/jingtaozf/orgs","repos_url":"https://api.github.com/users/jingtaozf/repos","events_url":"https://api.github.com/users/jingtaozf/events{/privacy}","received_events_url":"https://api.github.com/users/jingtaozf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T04:08:04Z","updated_at":"2015-11-17T09:02:59Z","closed_at":null,"body":"In file radare2/libr/bin/bin.c, function r_bin_get_vaddr, the following code exist:\r\n\r\n```c\r\n\t\tif (!strcmp (bin->cur->o->info->arch, \"arm\") && (vaddr & 1)) {\r\n\t\t\tvaddr = (vaddr >> 1) << 1;\r\n\t\t}\r\n```\r\nBut it's not true, for example, I have one mach-o file, which segment __objc_classname's vaddr is 0x0100c09687 and its align is one byte.\r\n\r\nThe above code will raise issue to such file."},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/157313204","html_url":"https://github.com/radare/radare2/issues/3697#issuecomment-157313204","issue_url":"https://api.github.com/repos/radare/radare2/issues/3697","id":157313204,"user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T09:02:59Z","updated_at":"2015-11-17T09:02:59Z","body":"Oh! that can be the reason why some asm.emu strings are chopped by 1 char in many iOS apps. is this the same issue?"}}