Skip to content

Commit

Permalink
Adding hashtable fuzzer
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #23671)
  • Loading branch information
nhorman authored and paulidale committed Apr 24, 2024
1 parent cc4ea5e commit f597acb
Show file tree
Hide file tree
Showing 3 changed files with 421 additions and 2 deletions.
12 changes: 10 additions & 2 deletions fuzz/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server smime
PROGRAMS{noinst}=punycode pem decoder
PROGRAMS{noinst}=punycode pem decoder hashtable
PROGRAMS{noinst}=v3name

IF[{- !$disabled{"cmp"} -}]
Expand Down Expand Up @@ -93,6 +93,10 @@ IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
INCLUDE[decoder]=../include {- $ex_inc -}
DEPEND[decoder]=../libcrypto {- $ex_lib -}

SOURCE[hashtable]=hashtable.c driver.c
INCLUDE[hashtable]=../include {- $ex_inc -}
DEPEND[hashtable]=../libcrypto {- $ex_lib -}

SOURCE[punycode]=punycode.c driver.c
INCLUDE[punycode]=../include {- $ex_inc -}
DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
Expand Down Expand Up @@ -132,7 +136,7 @@ ENDIF

IF[{- !$disabled{tests} -}]
PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
PROGRAMS{noinst}=punycode-test pem-test decoder-test
PROGRAMS{noinst}=punycode-test pem-test decoder-test hashtable-test
PROGRAMS{noinst}=v3name-test

IF[{- !$disabled{"cmp"} -}]
Expand Down Expand Up @@ -217,6 +221,10 @@ IF[{- !$disabled{tests} -}]
INCLUDE[decoder-test]=../include
DEPEND[decoder-test]=../libcrypto

SOURCE[hashtable-test]=hashtable.c test-corpus.c fuzz_rand.c
INCLUDE[hashtable-test]=../include
DEPEND[hashtable-test]=../libcrypto.a

SOURCE[punycode-test]=punycode.c test-corpus.c
INCLUDE[punycode-test]=../include
DEPEND[punycode-test]=../libcrypto.a
Expand Down

0 comments on commit f597acb

Please sign in to comment.