libtpms/tests
Stefan Berger 23ab02a1c2 tests: oss-fuzz.sh: Append -fno-sanitize=bounds to CFLAGS
The new TPM 2 code casts bigNum's to Crypt_Int, which has an array 'd' of
type 'crypt_uword_t[2]' which then leads to the following types of errors
that we haven't found another solution for so far.

Running: /mnt/scratch0/clusterfuzz/bot/inputs/fuzzer-testcases/crash-2675de6341d4e056d04ab49179b8e5b8bd456589
	/src/libtpms/src/tpm2/crypto/openssl/CryptPrime.c:377:20: runtime error: index 23 out of bounds for type 'crypt_uword_t[2]' (aka 'unsigned long[2]')
 #0 0x5b4196 in RsaAdjustPrimeCandidate_New libtpms/src/tpm2/crypto/openssl/CryptPrime.c:377:20
 #1 0x5b4196 in RsaAdjustPrimeCandidate libtpms/src/tpm2/crypto/openssl/CryptPrime.c:405:9
 #2 0x5b4366 in TpmRsa_GeneratePrimeForRSA libtpms/src/tpm2/crypto/openssl/CryptPrime.c:454:6
 #3 0x590953 in CryptRsaGenerateKey libtpms/src/tpm2/crypto/openssl/CryptRsa.c:1433:9

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2024-01-15 14:53:19 -05:00
..
corpus-execute-command tests: add an initial corpus for fuzzing 2018-06-15 18:07:49 -04:00
base64decode.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
base64decode.sh tests: run a lot less tests in base64decode.sh 2019-05-07 16:01:48 -04:00
common tests: Use double quotes on command parameters (shellcheck) 2023-03-02 09:32:38 -05:00
freebl_sha1flattensize.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
fuzz-main.c fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
fuzz.cc tests: fuzz: Store initialized permall state blob 2021-07-22 22:23:16 -04:00
fuzz.sh tests: Restrict number of command line parameters to fuzz 2019-05-07 16:01:48 -04:00
Makefile.am tests: Add test cases for CVE-2023-1017 and CVE-2023-1018 2023-03-02 09:32:38 -05:00
nvram_offsets.c Fix many misspellings 2021-03-02 08:20:25 -05:00
oss-fuzz.sh tests: oss-fuzz.sh: Append -fno-sanitize=bounds to CFLAGS 2024-01-15 14:53:19 -05:00
run-fuzzer.sh build-sys: don't tweak LD_LIBRARY_PATH 2019-04-16 07:17:53 -04:00
tpm2_createprimary.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_createprimary.sh tests: Refactor repetitive test scripts to use one common script 2023-03-02 09:32:38 -05:00
tpm2_cve-2023-1017.c tests: Add test cases for CVE-2023-1017 and CVE-2023-1018 2023-03-02 09:32:38 -05:00
tpm2_cve-2023-1017.sh tests: Add test cases for CVE-2023-1017 and CVE-2023-1018 2023-03-02 09:32:38 -05:00
tpm2_cve-2023-1018.c tests: Add test cases for CVE-2023-1017 and CVE-2023-1018 2023-03-02 09:32:38 -05:00
tpm2_cve-2023-1018.sh tests: Add test cases for CVE-2023-1017 and CVE-2023-1018 2023-03-02 09:32:38 -05:00
tpm2_pcr_read.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_pcr_read.sh tests: Refactor repetitive test scripts to use one common script 2023-03-02 09:32:38 -05:00
tpm2_run_test.sh tests: Refactor repetitive test scripts to use one common script 2023-03-02 09:32:38 -05:00
tpm2_selftest.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_selftest.sh tests: Refactor repetitive test scripts to use one common script 2023-03-02 09:32:38 -05:00