Skip to content

Commit

Permalink
Decrease the value of HASHCOUNT_T_MAX to avoid the OOM during the Fuz…
Browse files Browse the repository at this point in the history
…z test

Signed-off-by: MR-sanman <[email protected]>
  • Loading branch information
chengguipeng committed Dec 19, 2020
1 parent ed3a1eb commit 31603e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ extern "C" {
#endif

typedef unsigned long hashcount_t;
#define HASHCOUNT_T_MAX ULONG_MAX
//Decrease the value of HASHCOUNT_T_MAX to avoid the OOM during the Fuzz test
#define HASHCOUNT_T_MAX 819200

typedef unsigned long hash_val_t;
#define HASH_VAL_T_MAX ULONG_MAX
Expand Down

0 comments on commit 31603e0

Please sign in to comment.