mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
Issue 52666: cpp-httplib:server_fuzzer: Timeout in server_fuzzer
This commit is contained in:
parent
51607ec752
commit
0ff2e16d69
3 changed files with 46 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue