clamav/unit_tests
Micah Snyder d11590f7a4
Fix unit test caused by expiring signing certificate
The clamscan test "assorted_test.py::TC::test_pe_cert_trust" is about to
fail because the "test.exe" test file was signed with a cert set to
expire after only 2 years, and it has been 23 months.

While attempting to generate a new one that will last 73000 days (200
years), I discovered that any signing certificate set to expire after
2038 will fail the trust-check because the `ca.not_after` variable is
maxed out `time_t` incapable of expressing a higher number.
To fix this, I've upgraded the variables to `uint64_t`.

I also had to replace a bunch of generated signatures to match the new
"test.exe".

Finally, I noticed that "ca.not_before" was being set to the token[8]
instead of token[9], which presumably mean the "NotBefore" field for
Trusted and Revoked Certificates was non-functional, as it was treating
the "CertSign" boolean as the "NotBefore" value.

Fixes: https://github.com/Cisco-Talos/clamav/issues/1300
2024-07-22 13:25:52 -04:00
..
clamscan Add parser for ALZ archives 2024-04-15 10:03:02 -07:00
examples Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
input Fix unit test caused by expiring signing certificate 2024-07-22 13:25:52 -04:00
check_bytecode.c Remove max-allocation limits where not required 2024-03-15 13:18:47 -04:00
check_clamav.c Remove libbz2 dead code 2024-04-13 12:34:15 -04:00
check_clamav_skip.c bb12596: Fix build issue when libcheck missing 2020-08-24 15:11:07 -07:00
check_clamd.c Windows: Fix C/Rust FFI compat issue + Windows compile warnings 2024-04-09 10:35:22 -04:00
check_disasm.c Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
check_fpu_endian.c Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
check_htmlnorm.c Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
check_jsnorm.c Windows: Fix C/Rust FFI compat issue + Windows compile warnings 2024-04-09 10:35:22 -04:00
check_matchers.c Remove PCRE dead code 2024-04-13 12:34:15 -04:00
check_regex.c Windows: Fix C/Rust FFI compat issue + Windows compile warnings 2024-04-09 10:35:22 -04:00
check_str.c Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
check_uniq.c Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
checks.h CMake: Add CTest support to match Autotools checks 2021-02-25 11:41:26 -08:00
clamd_test.py Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
CMakeLists.txt Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
freshclam_test.py Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
libclamav_test.py Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
Run-GetLibs.ctest Test: fix check_clamd failure on Windows 2021-03-22 19:50:48 -07:00
sigtool_test.py Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
testcase.py Bump copyright dates for 2024 2024-01-22 11:27:17 -05:00
valgrind.supp Valgrind: Adjust statx suppressions 2024-04-09 10:35:22 -04:00