Skip to content

Commit

Permalink
Fix fuzz_pcap
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl committed Aug 16, 2023
1 parent 48cd86b commit bcf1240
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/net/fuzz_pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ int
LLVMFuzzerTestOneInput( uchar const * data,
ulong size ) {

FILE * file = fmemopen( (void *)data, size, "r+b" );
if( FD_UNLIKELY( size==0UL ) ) return 0;

FILE * file = fmemopen( (void *)data, size, "rb" );
FD_TEST( file );

/* Open "pcap". */
Expand Down

0 comments on commit bcf1240

Please sign in to comment.