{"action":"reopened","issue":{"url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1165","repository_url":"https://api.github.com/repos/Vector35/binaryninja-api","labels_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1165/labels{/name}","comments_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1165/comments","events_url":"https://api.github.com/repos/Vector35/binaryninja-api/issues/1165/events","html_url":"https://github.com/Vector35/binaryninja-api/issues/1165","id":369162998,"node_id":"MDU6SXNzdWUzNjkxNjI5OTg=","number":1165,"title":"bv.get_section_by_name broken in most recent dev build","user":{"login":"mattz0rt","id":13485782,"node_id":"MDQ6VXNlcjEzNDg1Nzgy","avatar_url":"https://avatars3.githubusercontent.com/u/13485782?v=4","gravatar_id":"","url":"https://api.github.com/users/mattz0rt","html_url":"https://github.com/mattz0rt","followers_url":"https://api.github.com/users/mattz0rt/followers","following_url":"https://api.github.com/users/mattz0rt/following{/other_user}","gists_url":"https://api.github.com/users/mattz0rt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattz0rt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattz0rt/subscriptions","organizations_url":"https://api.github.com/users/mattz0rt/orgs","repos_url":"https://api.github.com/users/mattz0rt/repos","events_url":"https://api.github.com/users/mattz0rt/events{/privacy}","received_events_url":"https://api.github.com/users/mattz0rt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-11T14:58:07Z","updated_at":"2018-10-11T15:04:45Z","closed_at":null,"author_association":"NONE","body":"This call was working before updating to the most recent dev build. I get the following error:\r\n```\r\n>>> bv.get_section_by_name('.text')\r\nTraceback (most recent call last):\r\n  File \"<console>\", line 1, in <module>\r\n  File \"C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\..\\python\\binaryninja\\binaryview.py\", line 3698, in get_section_by_name\r\n    result = Section(section)\r\n  File \"C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\..\\python\\binaryninja\\binaryview.py\", line 552, in __init__\r\n    self.handle = core.handle_of_type(handle, core.BNSection)\r\n  File \"C:\\Program Files\\Vector35\\BinaryNinja\\plugins\\..\\python\\binaryninja\\_binaryninjacore.py\", line 12733, in handle_of_type\r\n    raise ValueError('expected pointer to %s' % str(handle_type))\r\nValueError: expected pointer to <class 'binaryninja._binaryninjacore.BNSection'>\r\n```\r\nFrom pdb it looks like \"value\" is an instance of \"handle_type\" instead of a pointer to it:\r\n```\r\n(Pdb) isinstance(value, ctypes.POINTER(handle_type))\r\nFalse\r\n(Pdb) isinstance(value, handle_type)\r\nTrue\r\n```"}}
{"actor":{"display_login":"plafosse"}}