{"action":"opened","issue":{"url":"https://api.github.com/repos/microsoft/STL/issues/388","repository_url":"https://api.github.com/repos/microsoft/STL","labels_url":"https://api.github.com/repos/microsoft/STL/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/STL/issues/388/comments","events_url":"https://api.github.com/repos/microsoft/STL/issues/388/events","html_url":"https://github.com/microsoft/STL/issues/388","id":537905735,"node_id":"MDU6SXNzdWU1Mzc5MDU3MzU=","number":388,"title":"<streambuf> : std::basic_streambuf doesn't support 64 bit properly","user":{"login":"gilwohl","id":16452077,"node_id":"MDQ6VXNlcjE2NDUyMDc3","avatar_url":"https://avatars0.githubusercontent.com/u/16452077?v=4","gravatar_id":"","url":"https://api.github.com/users/gilwohl","html_url":"https://github.com/gilwohl","followers_url":"https://api.github.com/users/gilwohl/followers","following_url":"https://api.github.com/users/gilwohl/following{/other_user}","gists_url":"https://api.github.com/users/gilwohl/gists{/gist_id}","starred_url":"https://api.github.com/users/gilwohl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilwohl/subscriptions","organizations_url":"https://api.github.com/users/gilwohl/orgs","repos_url":"https://api.github.com/users/gilwohl/repos","events_url":"https://api.github.com/users/gilwohl/events{/privacy}","received_events_url":"https://api.github.com/users/gilwohl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-14T12:06:46Z","updated_at":"2019-12-14T12:06:46Z","closed_at":null,"author_association":"NONE","body":"std::basic_streambuf doesn't support 64 bit properly, because it holds the counters in 32 bit ints:\r\n\tint _Gcount;\t// length of read buffer\r\n\tint _Pcount;\t// length of write buffer\r\n\tint *_IGcount;\t// pointer to length of read buffer\r\n\tint *_IPcount;\t// pointer to length of write buffer\r\n\r\nThen e.g. in std::basic_streambuf::setg(...) you have:\r\n        *_IGcount = static_cast<int>(_Last - _Next);\r\nand forcing a cast to int prevents from using with a memory range bugger than ~2GB (even on Win64 builds).\r\n\r\n"}}
{"actor":{"display_login":"gilwohl"}}