{"action":"closed","issue":{"url":"https://api.github.com/repos/GlacierW/MBA/issues/11","repository_url":"https://api.github.com/repos/GlacierW/MBA","labels_url":"https://api.github.com/repos/GlacierW/MBA/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/GlacierW/MBA/issues/11/comments","events_url":"https://api.github.com/repos/GlacierW/MBA/issues/11/events","html_url":"https://github.com/GlacierW/MBA/issues/11","id":168269520,"number":11,"title":"fix is_valid_mem_range() and is_valid_disk_range()","user":{"login":"misterlihao","id":12031847,"avatar_url":"https://avatars.githubusercontent.com/u/12031847?v=3","gravatar_id":"","url":"https://api.github.com/users/misterlihao","html_url":"https://github.com/misterlihao","followers_url":"https://api.github.com/users/misterlihao/followers","following_url":"https://api.github.com/users/misterlihao/following{/other_user}","gists_url":"https://api.github.com/users/misterlihao/gists{/gist_id}","starred_url":"https://api.github.com/users/misterlihao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterlihao/subscriptions","organizations_url":"https://api.github.com/users/misterlihao/orgs","repos_url":"https://api.github.com/users/misterlihao/repos","events_url":"https://api.github.com/users/misterlihao/events{/privacy}","received_events_url":"https://api.github.com/users/misterlihao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-29T07:49:26Z","updated_at":"2016-07-29T07:56:09Z","closed_at":"2016-07-29T07:56:09Z","body":"Here is the code,\r\n```c\r\nstatic int is_valid_mem_range( uint64_t addr, uint64_t len ) {\r\n\r\n    if( phys_ram_size - addr < len )\r\n        return false;\r\n    return true;\r\n}\r\n```\r\nWhen *addr* is larger than *phys_ram_size*,  \r\nthe function returns *true*, whether it should return *false*.\r\n\r\nThere is a same problem in *is_valid_disk_range()* too."}}
{"actor":{"display_login":"hackjackhack"}}