Skip to content

Commit

Permalink
quic: fix fuzz_quic
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl authored and ripatel-fd committed Jan 10, 2024
1 parent a4aa1d9 commit 5de592a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/tango/quic/fd_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ fd_quic_new( void * mem,
| ( limits->handshake_cnt ==0UL )
| ( limits->inflight_pkt_cnt==0UL )
| ( limits->tx_buf_sz ==0UL ) ) ) {
return 0UL;
FD_LOG_WARNING(( "invalid limits" ));
return NULL;
}

ulong footprint = fd_quic_footprint( limits );
Expand Down
5 changes: 1 addition & 4 deletions src/tango/quic/tests/fuzz_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,14 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
fd_boot(argc, argv);
atexit(fd_halt);

/* Disable parsing error logging */
fd_log_level_stderr_set(4);

ulong cpu_idx = fd_tile_cpu_id(fd_tile_idx());
if (cpu_idx > fd_shmem_cpu_cnt())
cpu_idx = 0UL;

char const *_page_sz =
fd_env_strip_cmdline_cstr(argc, argv, "--page-sz", NULL, "normal");
ulong page_cnt =
fd_env_strip_cmdline_ulong(argc, argv, "--page-cnt", NULL, 1500UL);
fd_env_strip_cmdline_ulong(argc, argv, "--page-cnt", NULL, 3200UL);
ulong numa_idx = fd_env_strip_cmdline_ulong(argc, argv, "--numa-idx", NULL,
fd_shmem_numa_idx(cpu_idx));

Expand Down

0 comments on commit 5de592a

Please sign in to comment.