forked from boostorg/regex
Added checks for bad input files
[SVN r21321]
This commit is contained in:
@ -41,6 +41,7 @@ extern const char* footer_text;
|
||||
void load_file(std::string& s, std::istream& is)
|
||||
{
|
||||
s.erase();
|
||||
if(is.bad()) return;
|
||||
s.reserve(is.rdbuf()->in_avail());
|
||||
char c;
|
||||
while(is.get(c))
|
||||
|
Reference in New Issue
Block a user