{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/4925","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/4925/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/4925/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/4925/events","html_url":"https://github.com/radare/radare2/issues/4925","id":155310009,"number":4925,"title":"aav - undesirable results","user":{"login":"hummypkg","id":10621611,"avatar_url":"https://avatars.githubusercontent.com/u/10621611?v=3","gravatar_id":"","url":"https://api.github.com/users/hummypkg","html_url":"https://github.com/hummypkg","followers_url":"https://api.github.com/users/hummypkg/followers","following_url":"https://api.github.com/users/hummypkg/following{/other_user}","gists_url":"https://api.github.com/users/hummypkg/gists{/gist_id}","starred_url":"https://api.github.com/users/hummypkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hummypkg/subscriptions","organizations_url":"https://api.github.com/users/hummypkg/orgs","repos_url":"https://api.github.com/users/hummypkg/repos","events_url":"https://api.github.com/users/hummypkg/events{/privacy}","received_events_url":"https://api.github.com/users/hummypkg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-17T16:57:15Z","updated_at":"2016-06-08T15:05:53Z","closed_at":null,"body":"I noticed that running _aaaa_ against a MIPS binary with the git version converts lots of assembly code into dwords. It looks like there are too many false positives here for it to be useful.\r\n\r\n```\r\n% r2 -N -a mips radare2-regressions/bins/elf/busybox-mips\r\n[0x00404360]> pd 1 @0x00404488\r\n            0x00404488      06504500       srlv t2, a1, v0\r\n[0x00404360]> aav \r\naav: using from to 0x400000 0x4581f0\r\nUsing vmin 0x400000 and vmax 0x458e94\r\n[0x00404360]> pd 1 @0x00404488\r\n            0x00404488 .dword 0x00455006\r\n```"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/224619008","html_url":"https://github.com/radare/radare2/issues/4925#issuecomment-224619008","issue_url":"https://api.github.com/repos/radare/radare2/issues/4925","id":224619008,"user":{"login":"hummypkg","id":10621611,"avatar_url":"https://avatars.githubusercontent.com/u/10621611?v=3","gravatar_id":"","url":"https://api.github.com/users/hummypkg","html_url":"https://github.com/hummypkg","followers_url":"https://api.github.com/users/hummypkg/followers","following_url":"https://api.github.com/users/hummypkg/following{/other_user}","gists_url":"https://api.github.com/users/hummypkg/gists{/gist_id}","starred_url":"https://api.github.com/users/hummypkg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hummypkg/subscriptions","organizations_url":"https://api.github.com/users/hummypkg/orgs","repos_url":"https://api.github.com/users/hummypkg/repos","events_url":"https://api.github.com/users/hummypkg/events{/privacy}","received_events_url":"https://api.github.com/users/hummypkg/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T15:05:53Z","updated_at":"2016-06-08T15:05:53Z","body":"I don't have any good suggestions for this I'm afraid. I'm just avoiding aav for MIPS programs - aaa;aae;aat instead.\r\n\r\nOn MIPSel a lot of register instructions are represented as xxxx4300 and xxxx4400 so they look like data references to aav.\r\n\r\nHere are some more examples (sdiff output, left is before aav and right after).\r\n\r\n```\r\n| 0x00432300      2b304400       a2 = (unsigned) (v0 < a0)    | | 0x00432300 .dword 0x0044302b\r\n| 0x0043232c      2b384400       a3 = (unsigned) (v0 < a0)    | | 0x0043232c .dword 0x0044382b\r\n| 0x00447b64      24104400       v0 &= a0                     | | 0x00447b64 .dword 0x00441024\r\n| 0x00447b80      21104300       v0 += v1                     | | 0x00447b80 .dword 0x00431021\r\n| 0x00433fa4      21204000       a0 = v0                      | | 0x00433fa4 .dword 0x00402021\r\n| 0x00433fa8      21384000       a3 = v0                      | | 0x00433fa8 .dword 0x00403821\r\n| 0x00435910      21884000       s1 = v0                      | | 0x00435910 .dword 0x00408821\r\n| 0x0044a42c      21104300       v0 += v1                     | | 0x0044a42c .dword 0x00431021\r\n| 0x00436764      21284000       a1 = v0                      | | 0x00436764 .dword 0x00402821\r\n| 0x0043677c      24104300       v0 &= v1                     | | 0x0043677c .dword 0x00431024\r\n| 0x00436788      24104300       v0 &= v1                     | | 0x00436788 .dword 0x00431024\r\n| 0x00436790      24104300       v0 &= v1                     | | 0x00436790 .dword 0x00431024\r\n| 0x00436794      25104400       v0 |= a0                     | | 0x00436794 .dword 0x00441025\r\n| 0x00436b94      24104300       v0 &= v1                     | | 0x00436b94 .dword 0x00431024\r\n| 0x004386dc      21804000       s0 = v0                      | | 0x004386dc .dword 0x00408021\r\n| 0x00438700      21204000       a0 = v0                      | | 0x00438700 .dword 0x00402021\r\n| 0x00438704      25104300       v0 |= v1                     | | 0x00438704 .dword 0x00431025\r\n| 0x00438624      21804000       s0 = v0                      | | 0x00438624 .dword 0x00408021\r\n| 0x00438648      21204000       a0 = v0                      | | 0x00438648 .dword 0x00402021\r\n| 0x0043864c      25104300       v0 |= v1                     | | 0x0043864c .dword 0x00431025\r\n| 0x00438fd0      0a204300       if (!v1) a0 = v0             | | 0x00438fd0 .dword 0x0043200a\r\n```"}}
{"actor":{"display_login":"hummypkg"}}