mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
* refactor: migrate from protobuf to simple-protobuf * update go.mod * fix server * Update gRPC.cpp * Update gRPC.cpp
20 lines
390 B
C++
20 lines
390 B
C++
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <string_view>
|
|
|
|
#include <parser/parser.h>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput( const uint8_t * Data, size_t Size )
|
|
{
|
|
auto file = proto_file{
|
|
.content = std::string( reinterpret_cast< const char * >( Data ), Size ),
|
|
};
|
|
try
|
|
{
|
|
parse_proto_file_content( file );
|
|
}
|
|
catch( ... )
|
|
{
|
|
}
|
|
return 0;
|
|
} |