mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Merge remote-tracking branch 'origin/master' into more-fuzz2
This commit is contained in:
@@ -495,11 +495,18 @@ bool Client::processWithASTFuzzer(std::string_view full_query)
|
||||
|
||||
bool Client::processBuzzHouseQuery(const String & full_query)
|
||||
{
|
||||
static constexpr size_t max_query_bytes = 1 << 20;
|
||||
bool server_up = true;
|
||||
|
||||
have_error = false;
|
||||
error_code = 0;
|
||||
if (!processQueryText(full_query))
|
||||
if (full_query.size() > max_query_bytes)
|
||||
{
|
||||
have_error = true;
|
||||
error_code = ErrorCodes::CANNOT_PARSE_TEXT;
|
||||
LOG_WARNING(fuzz_config->log, "Skipping oversized query ({} bytes, limit {})", full_query.size(), max_query_bytes);
|
||||
}
|
||||
else if (!processQueryText(full_query))
|
||||
{
|
||||
have_error = true;
|
||||
error_code = ErrorCodes::CANNOT_PARSE_TEXT;
|
||||
|
||||
Reference in New Issue
Block a user