{"action":"opened","issue":{"url":"https://api.github.com/repos/licar/oop_lab_1/issues/3","labels_url":"https://api.github.com/repos/licar/oop_lab_1/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/licar/oop_lab_1/issues/3/comments","events_url":"https://api.github.com/repos/licar/oop_lab_1/issues/3/events","html_url":"https://github.com/licar/oop_lab_1/issues/3","id":65100219,"number":3,"title":"Замечания по программе Invert","user":{"login":"alexey-malov","id":6040682,"avatar_url":"https://avatars.githubusercontent.com/u/6040682?v=3","gravatar_id":"","url":"https://api.github.com/users/alexey-malov","html_url":"https://github.com/alexey-malov","followers_url":"https://api.github.com/users/alexey-malov/followers","following_url":"https://api.github.com/users/alexey-malov/following{/other_user}","gists_url":"https://api.github.com/users/alexey-malov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexey-malov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexey-malov/subscriptions","organizations_url":"https://api.github.com/users/alexey-malov/orgs","repos_url":"https://api.github.com/users/alexey-malov/repos","events_url":"https://api.github.com/users/alexey-malov/events{/privacy}","received_events_url":"https://api.github.com/users/alexey-malov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-29T21:52:06Z","updated_at":"2015-03-29T21:52:06Z","closed_at":null,"body":"```c++\r\nFILE *OpenFile(string const &strFileName)\r\n{\r\n\tconst double MAX_FILE_SIZE = 2147483648;\r\n\tFILE *file = fopen(strFileName.c_str(), \"r\");\r\n\r\n\tif (!file)\r\n\t{\r\n\t\tcout << \"File didn't open\";\r\n\t\treturn NULL;\r\n\t}\r\n\r\n\tfseek(file, 0, SEEK_END);\r\n\tif (ftell(file) > MAX_FILE_SIZE)\r\n\t{\r\n\t\tcout << \"Too big size of file\";\r\n\t\treturn NULL;\r\n\t}\r\n\tfseek(file, 0, SEEK_SET);\r\n\r\n\treturn file;\r\n}\r\n```\r\nЕсли входной файл будет длиннее MAX_FILE_SIZE, то программа его не закроет"}}