{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/4289","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/4289/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/4289/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/4289/events","html_url":"https://github.com/dotnet/coreclr/pull/4289","id":147622034,"number":4289,"title":"NetBSD: Fix integer overflow of ullTotalPhys and ullAvailPhys","user":{"login":"krytarowski","id":6665730,"avatar_url":"https://avatars.githubusercontent.com/u/6665730?v=3","gravatar_id":"","url":"https://api.github.com/users/krytarowski","html_url":"https://github.com/krytarowski","followers_url":"https://api.github.com/users/krytarowski/followers","following_url":"https://api.github.com/users/krytarowski/following{/other_user}","gists_url":"https://api.github.com/users/krytarowski/gists{/gist_id}","starred_url":"https://api.github.com/users/krytarowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krytarowski/subscriptions","organizations_url":"https://api.github.com/users/krytarowski/orgs","repos_url":"https://api.github.com/users/krytarowski/repos","events_url":"https://api.github.com/users/krytarowski/events{/privacy}","received_events_url":"https://api.github.com/users/krytarowski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/coreclr/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-12T03:30:24Z","updated_at":"2016-04-12T08:36:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/coreclr/pulls/4289","html_url":"https://github.com/dotnet/coreclr/pull/4289","diff_url":"https://github.com/dotnet/coreclr/pull/4289.diff","patch_url":"https://github.com/dotnet/coreclr/pull/4289.patch"},"body":"```\r\n$ cat s.c\r\n\r\nint main()\r\n{\r\n        int pages = sysconf(_SC_PHYS_PAGES);\r\n        int pagesize = sysconf(_SC_PAGE_SIZE);\r\n        printf(\"pages=%d pagesize=%d *=%d\\n\", pages, pagesize, pages*pagesize);\r\n        printf(\"pages=%d pagesize=%d *=%llu\\n\", pages, pagesize, (unsigned long long)pages*(unsigned long long)pagesize);\r\n        return 0;\r\n}\r\n$ ./a.out\r\npages=8360335 pagesize=4096 *=-115806208\r\npages=8360335 pagesize=4096 *=34243932160\r\n\r\n$ grep memory /var/run/dmesg.boot\r\ntotal memory = 32657 MB\r\navail memory = 31689 MB\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/208784056","html_url":"https://github.com/dotnet/coreclr/pull/4289#issuecomment-208784056","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/4289","id":208784056,"user":{"login":"janvorli","id":10758568,"avatar_url":"https://avatars.githubusercontent.com/u/10758568?v=3","gravatar_id":"","url":"https://api.github.com/users/janvorli","html_url":"https://github.com/janvorli","followers_url":"https://api.github.com/users/janvorli/followers","following_url":"https://api.github.com/users/janvorli/following{/other_user}","gists_url":"https://api.github.com/users/janvorli/gists{/gist_id}","starred_url":"https://api.github.com/users/janvorli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janvorli/subscriptions","organizations_url":"https://api.github.com/users/janvorli/orgs","repos_url":"https://api.github.com/users/janvorli/repos","events_url":"https://api.github.com/users/janvorli/events{/privacy}","received_events_url":"https://api.github.com/users/janvorli/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T08:36:06Z","updated_at":"2016-04-12T08:36:06Z","body":"Based on the sysconf doc, it returns long, not int, so there should be no overflow here."}}