nekoray_Mahdi-zarei/3rdparty/simple-protobuf/test/fuzzer/spb-protoc-fuzzer.cpp
parhelia512 daa6c93900
refactor: migrate from protobuf to simple-protobuf (#520)
* refactor: migrate from protobuf to simple-protobuf

* update go.mod

* fix server

* Update gRPC.cpp

* Update gRPC.cpp
2025-07-12 15:17:05 -07:00

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;
}