Line data Source code
1 : #include "fd_gossip_private.h" 2 : #include <stdlib.h> 3 : 4 : int 5 : LLVMFuzzerInitialize( int * argc, 6 12 : char *** argv ) { 7 : /* Set up shell without signal handlers */ 8 12 : putenv( "FD_LOG_BACKTRACE=0" ); 9 12 : fd_boot( argc, argv ); 10 12 : fd_log_level_stderr_set(4); 11 12 : atexit( fd_halt ); 12 12 : return 0; 13 12 : } 14 : 15 : int 16 : LLVMFuzzerTestOneInput( uchar const * data, 17 : ulong size ) { 18 : if( FD_UNLIKELY( size>1232UL ) ) return -1; 19 : 20 : fd_gossip_view_t view[1]; 21 : fd_gossip_msg_parse( view, data, size ); 22 : 23 : return 0; 24 : }