{"action":"closed","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/3622","labels_url":"https://api.github.com/repos/radare/radare2/issues/3622/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/3622/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/3622/events","html_url":"https://github.com/radare/radare2/issues/3622","id":114114716,"number":3622,"title":"can't search for pattern 01010102. Page issue?","user":{"login":"ricardoquesada","id":232330,"avatar_url":"https://avatars.githubusercontent.com/u/232330?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardoquesada","html_url":"https://github.com/ricardoquesada","followers_url":"https://api.github.com/users/ricardoquesada/followers","following_url":"https://api.github.com/users/ricardoquesada/following{/other_user}","gists_url":"https://api.github.com/users/ricardoquesada/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardoquesada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardoquesada/subscriptions","organizations_url":"https://api.github.com/users/ricardoquesada/orgs","repos_url":"https://api.github.com/users/ricardoquesada/repos","events_url":"https://api.github.com/users/ricardoquesada/events{/privacy}","received_events_url":"https://api.github.com/users/ricardoquesada/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radare/radare2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/radare/radare2/labels/search","name":"search","color":"eb6420"},{"url":"https://api.github.com/repos/radare/radare2/labels/test-attached","name":"test-attached","color":"d0ff00"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/radare/radare2/milestones/8","html_url":"https://github.com/radare/radare2/milestones/0.10.0","labels_url":"https://api.github.com/repos/radare/radare2/milestones/8/labels","id":1153073,"number":8,"title":"0.10.0","description":"","creator":{"login":"XVilka","id":203261,"avatar_url":"https://avatars.githubusercontent.com/u/203261?v=3","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},"open_issues":6,"closed_issues":150,"state":"open","created_at":"2015-06-07T00:16:38Z","updated_at":"2015-11-03T10:04:26Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-29T18:23:01Z","updated_at":"2015-11-03T10:04:26Z","closed_at":"2015-11-03T10:04:26Z","body":"I'm trying to search for the pattern 0x01, 0x01, 0x01, 0x02 in this file:\r\nhttps://www.dropbox.com/s/mt7mlde7yh9i180/pvm2-indiecito.sid?dl=1\r\n\r\nI know the bytes are there. I simple hexudmp, o even with radare you can see them:\r\n```\r\n$ hexdump pvm2-indiecito.sid\r\n...\r\n00011f0 f0 a6 0e 33 20 ff 01 01 01 01 01 01 01 01 01 01\r\n0001200 01 02 02 02 02 02 02 02 03 03 03 03 03 04 04 04\r\n```\r\nSo, I would expect to find that pattern using `/x 01010102` in radare.\r\n\r\nSo I did:\r\n```\r\n$ r2 pvm2-indiecito.sid\r\n[0x00000000]> /x 01010102\r\nSearching 4 bytes...\r\n# 6 [0x0-0x126d]\r\nhits: 0\r\n```\r\n\r\nand it couldn't find it. However if I search of `0102`, instead of `01010102`, it finds it.\r\n```\r\n$ r2 pvm2-indiecito.sid\r\n[0x00000000]> /x 0102\r\nSearching 2 bytes...\r\n# 6 [0x0-0x126d]\r\nhits: 3\r\n0x00000a2e hit0_0 0102\r\n0x00000a3b hit0_1 0102\r\n0x00001200 hit0_2 0102\r\n```\r\n\r\nand if I search of `01020202`  it also finds it:\r\n```\r\n[0x00000000]> /x 01020202\r\nSearching 4 bytes...\r\n# 6 [0x0-0x126d]\r\nhits: 1\r\n0x00001200 hit1_0 01020202\r\n```\r\nPerhaps it has to do that that it is on a different page (the pattern 0102 starts at 0x1200) so the alignment could affect, but my current `search.align` is 0.\r\nThese are all my search settings:\r\n```\r\n[0x00000000]> e search.\r\nsearch.align = 0\r\nsearch.chunk = 0\r\nsearch.contiguous = true\r\nsearch.count = 0\r\nsearch.distance = 0\r\nsearch.esilcombo = 8\r\nsearch.flags = true\r\nsearch.from = 0xffffffffffffffff\r\nsearch.in = file\r\nsearch.kwidx = 2\r\nsearch.maxhits = 0\r\nsearch.prefix = hit\r\nsearch.show = true\r\nsearch.to = 0xffffffffffffffff\r\n```\r\n\r\n__UPDATE__:\r\nI also tried with a space between the bytes, but it didn't work:\r\n```\r\n[0x00000000]> /x 01 01 01 02\r\nSearching 4 bytes...\r\n# 6 [0x0-0x126d]\r\nhits: 0\r\n[0x00000000]>\r\n```"}}