forked from boostorg/regex
Added checks for bad input files
[SVN r21321]
This commit is contained in:
@ -71,6 +71,7 @@ bool regex_callback(const boost::match_results<std::string::const_iterator>& wha
|
||||
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