LCOV - code coverage report
Current view: top level - waltz/quic/templ - fuzz_quic_parse_transport_params.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 6 6 100.0 %
Date: 2024-11-13 11:58:15 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include <stddef.h>
       2             : #include <stdlib.h>
       3             : 
       4             : #include "../../../util/fd_util.h"
       5             : #include "../../../util/sanitize/fd_fuzz.h"
       6             : #include "../fd_quic_common.h"
       7             : #include "fd_quic_transport_params.h"
       8             : 
       9             : int
      10             : LLVMFuzzerInitialize( int  *   argc,
      11          18 :                       char *** argv ) {
      12             :   /* Set up shell without signal handlers */
      13          18 :   putenv( "FD_LOG_BACKTRACE=0" );
      14          18 :   fd_boot( argc, argv );
      15          18 :   atexit( fd_halt );
      16             : 
      17          18 :   return 0;
      18          18 : }
      19             : 
      20             : int
      21             : LLVMFuzzerTestOneInput( uchar const * data,
      22             :                         ulong         size ) {
      23             :   fd_quic_transport_params_t out;
      24             :   fd_quic_decode_transport_params( &out, data, size );
      25             :   FD_FUZZ_MUST_BE_COVERED;
      26             :   return 0;
      27             : }

Generated by: LCOV version 1.14