Issue 52666: cpp-httplib:server_fuzzer: Timeout in server_fuzzer

This commit is contained in:
yhirose 2023-01-21 01:07:21 -05:00
parent 51607ec752
commit 0ff2e16d69
3 changed files with 46 additions and 0 deletions

View file

@ -3960,6 +3960,9 @@ public:
if (std::regex_match(header, m, re_content_disposition)) {
file_.name = m[1];
file_.filename = m[2];
} else {
is_valid_ = false;
return false;
}
}
buf_erase(pos + crlf_.size());