LCOV - code coverage report
Current view: top level - flamenco/gossip - fuzz_gossip_msg_parse.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 7 7 100.0 %
Date: 2025-09-19 04:41:14 Functions: 1 1 100.0 %

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

Generated by: LCOV version 1.14