Line data Source code
1 : #include "fd_ipecho_client_private.h" 2 : #include "../../util/fd_util.h" 3 : 4 : #if !FD_HAS_HOSTED 5 : #error "This target requires FD_HAS_HOSTED" 6 : #endif 7 : 8 : #include <stdlib.h> 9 : #include <assert.h> 10 : 11 : int 12 : LLVMFuzzerInitialize( int * argc, 13 12 : char *** argv ) { 14 12 : putenv( "FD_LOG_BACKTRACE=0" ); 15 12 : fd_boot( argc, argv ); 16 12 : atexit( fd_halt ); 17 12 : return 0; 18 12 : } 19 : 20 : int 21 : LLVMFuzzerTestOneInput( uchar const * data, 22 : ulong size ) { 23 : ushort shred_version; 24 : fd_ipecho_client_parse_response( data, size, &shred_version ); 25 : return 0; 26 : }