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