{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/11468","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/11468/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/11468/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/11468/events","html_url":"https://github.com/radare/radare2/issues/11468","id":358367735,"node_id":"MDU6SXNzdWUzNTgzNjc3MzU=","number":11468,"title":"AVR arguments are not captured by af/ aftm","user":{"login":"oddcoder","id":10424605,"node_id":"MDQ6VXNlcjEwNDI0NjA1","avatar_url":"https://avatars3.githubusercontent.com/u/10424605?v=4","gravatar_id":"","url":"https://api.github.com/users/oddcoder","html_url":"https://github.com/oddcoder","followers_url":"https://api.github.com/users/oddcoder/followers","following_url":"https://api.github.com/users/oddcoder/following{/other_user}","gists_url":"https://api.github.com/users/oddcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/oddcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddcoder/subscriptions","organizations_url":"https://api.github.com/users/oddcoder/orgs","repos_url":"https://api.github.com/users/oddcoder/repos","events_url":"https://api.github.com/users/oddcoder/events{/privacy}","received_events_url":"https://api.github.com/users/oddcoder/received_events","type":"User","site_admin":false},"labels":[{"id":110937869,"node_id":"MDU6TGFiZWwxMTA5Mzc4Njk=","url":"https://api.github.com/repos/radare/radare2/labels/anal","name":"anal","color":"009800","default":false},{"id":344405444,"node_id":"MDU6TGFiZWwzNDQ0MDU0NDQ=","url":"https://api.github.com/repos/radare/radare2/labels/types","name":"types","color":"f7c6c7","default":false},{"id":974291450,"node_id":"MDU6TGFiZWw5NzQyOTE0NTA=","url":"https://api.github.com/repos/radare/radare2/labels/vars","name":"vars","color":"f2b5e5","default":false}],"state":"open","locked":false,"assignee":{"login":"sivaramaaa","id":18589720,"node_id":"MDQ6VXNlcjE4NTg5NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/18589720?v=4","gravatar_id":"","url":"https://api.github.com/users/sivaramaaa","html_url":"https://github.com/sivaramaaa","followers_url":"https://api.github.com/users/sivaramaaa/followers","following_url":"https://api.github.com/users/sivaramaaa/following{/other_user}","gists_url":"https://api.github.com/users/sivaramaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/sivaramaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivaramaaa/subscriptions","organizations_url":"https://api.github.com/users/sivaramaaa/orgs","repos_url":"https://api.github.com/users/sivaramaaa/repos","events_url":"https://api.github.com/users/sivaramaaa/events{/privacy}","received_events_url":"https://api.github.com/users/sivaramaaa/received_events","type":"User","site_admin":false},"assignees":[{"login":"sivaramaaa","id":18589720,"node_id":"MDQ6VXNlcjE4NTg5NzIw","avatar_url":"https://avatars0.githubusercontent.com/u/18589720?v=4","gravatar_id":"","url":"https://api.github.com/users/sivaramaaa","html_url":"https://github.com/sivaramaaa","followers_url":"https://api.github.com/users/sivaramaaa/followers","following_url":"https://api.github.com/users/sivaramaaa/following{/other_user}","gists_url":"https://api.github.com/users/sivaramaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/sivaramaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivaramaaa/subscriptions","organizations_url":"https://api.github.com/users/sivaramaaa/orgs","repos_url":"https://api.github.com/users/sivaramaaa/repos","events_url":"https://api.github.com/users/sivaramaaa/events{/privacy}","received_events_url":"https://api.github.com/users/sivaramaaa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-09-09T10:34:42Z","updated_at":"2018-09-21T12:51:25Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Work environment\r\n\r\n| Questions                                            | Answers\r\n|------------------------------------------------------|--------------------\r\n| OS/arch/bits (mandatory)                             | gentoo x86\r\n| File format of the file you reverse (mandatory)      | AVR ROM.\r\n| Architecture/bits of the file (mandatory)            | AVR 8Bits\r\n| r2 -v full output, **not truncated** (mandatory)     |radare2 3.0.0-git 19416 @ linux-x86-64 git.2.9.0-44-g1e429810e commit: 1e429810eb233e38c2462db7be3fd95f6f8d6d07 build: 2018-09-08__19:22:21\r\n\r\n### Expected behavior\r\nRegister based arguments gets caught by auto-analysis\r\n### Actual behavior\r\nThey are never caught.\r\n### Steps to reproduce the behavior \r\nThis is the used binary: [flash_blc.bin.zip](https://github.com/radare/radare2/files/2364141/flash_blc.bin.zip)\r\n\r\n```\r\n➜  Telegram Desktop r2 flash_blc.bin\r\n[0x00000026]> aaa\r\n[x] Analyze all flags starting with sym. and entry0 (aa)\r\n[ ] \r\n[Value from 0x00000000 to 0x00001f42\r\naav: 0x00000000-0x00001f42 in 0x0-0x1f42\r\n[SPM: I dont know what to do with SPMCSR 1f26.\r\nSPM: I dont know what to do with SPMCSR 1ef8.\r\nSPM: I dont know what to do with SPMCSR 1f26.\r\n[x] Analyze function calls (aac)\r\n[SPM: I dont know what to do with SPMCSR 1ef8.rences (aar)\r\nSPM: I dont know what to do with SPMCSR 1f26.\r\n[x] Analyze len bytes of instructions for references (aar)\r\n[x] Constructing a function name for fcn.* and sym.func.* functions (aan)\r\nSPM: I dont know what to do with SPMCSR 1f26.\r\n[SPM: I dont know what to do with SPMCSR 00. (afta)\r\n[x] Type matching analysis for all functions (afta)\r\n[x] Use -AA or aaaa to perform additional experimental analysis.\r\n[0x00000026]>  s fcn.00001ac8 \r\n[0x00001ac8]> pdf\r\n╭ (fcn) fcn.00001ac8 10\r\n│   fcn.00001ac8 ();\r\n│           ; CALL XREF from fcn.00000162 (0x19e)\r\n│           0x00001ac8      dc01           movw r26, r24\r\n│           0x00001aca      cb01           movw r24, r22\r\n╰           0x00001acc      fc01           movw r30, r24\r\n│           ; CODE XREF from fcn.00001ac8 (0x1ad0)\r\n│       ╭─> 0x00001ace      e199           sbic 0x1c, 1\r\n│       ╰─< 0x00001ad0      fecf           rjmp 0x1ace\r\n[0x00001ac8]>\r\n```\r\nr24 and r22 are supposed to be register arguments (and r26 should be too according to the calling convention `avr` but it is ignored here)"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/423520210","html_url":"https://github.com/radare/radare2/issues/11468#issuecomment-423520210","issue_url":"https://api.github.com/repos/radare/radare2/issues/11468","id":423520210,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzUyMDIxMA==","user":{"login":"XVilka","id":203261,"node_id":"MDQ6VXNlcjIwMzI2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/203261?v=4","gravatar_id":"","url":"https://api.github.com/users/XVilka","html_url":"https://github.com/XVilka","followers_url":"https://api.github.com/users/XVilka/followers","following_url":"https://api.github.com/users/XVilka/following{/other_user}","gists_url":"https://api.github.com/users/XVilka/gists{/gist_id}","starred_url":"https://api.github.com/users/XVilka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XVilka/subscriptions","organizations_url":"https://api.github.com/users/XVilka/orgs","repos_url":"https://api.github.com/users/XVilka/repos","events_url":"https://api.github.com/users/XVilka/events{/privacy}","received_events_url":"https://api.github.com/users/XVilka/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T12:51:25Z","updated_at":"2018-09-21T12:51:25Z","author_association":"COLLABORATOR","body":"@oddcoder can you please craft a testcase for radare2-regressions?"}}
{"actor":{"display_login":"XVilka"}}