2021-05-31 11:43:22 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
2021-06-21 10:57:44 -04:00
|
|
|
#include <LibSQL/AST/Lexer.h>
|
|
|
|
|
#include <LibSQL/AST/Parser.h>
|
2021-05-31 11:43:22 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
2022-04-01 20:58:27 +03:00
|
|
|
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
2021-05-31 11:43:22 +01:00
|
|
|
{
|
2021-06-21 10:57:44 -04:00
|
|
|
auto parser = SQL::AST::Parser(SQL::AST::Lexer({ data, size }));
|
2021-05-31 11:43:22 +01:00
|
|
|
[[maybe_unused]] auto statement = parser.next_statement();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|