diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-11-10 09:43:30 +0100 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2025-11-21 08:17:59 +0100 |
| commit | 7dd1cd18373a6c64ecea8caf231e10a00764f705 (patch) | |
| tree | 2d630f9314ebe6660200996d7919aba4be596ef4 /src/lib/tests | |
| parent | c97f9243e4843a446b16789a9ebcb07b3787a505 (diff) | |
| download | ouroboros-7dd1cd18373a6c64ecea8caf231e10a00764f705.tar.gz ouroboros-7dd1cd18373a6c64ecea8caf231e10a00764f705.zip | |
lib: Fix buffer in auth_test and tpm log
The string buffer in auth_test was one byte too short. The log line
for the thread id in the tpm thread debug output needs type
conversion. The build fails because of this on OS X.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/tests')
| -rw-r--r-- | src/lib/tests/auth_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/tests/auth_test.c b/src/lib/tests/auth_test.c index ede294b8..896c42b0 100644 --- a/src/lib/tests/auth_test.c +++ b/src/lib/tests/auth_test.c @@ -90,6 +90,7 @@ static const char * server_ec_pk = \ "-----END PUBLIC KEY-----\n"; /* Valid signed server certificate for test-1.unittest.o7s */ +#define SSC_TEXT_SIZE 2295 /* size of cleartext certificate */ static const char * signed_server_crt = \ "-----BEGIN CERTIFICATE-----\n" "MIIDiTCCAy+gAwIBAgICEAUwCgYIKoZIzj0EAwIwWjELMAkGA1UEBhMCQkUxDDAK\n" @@ -573,7 +574,7 @@ int test_auth_bad_signature(void) int test_crt_str(void) { - char str[2295]; + char str[SSC_TEXT_SIZE + 1]; void * crt; TEST_START(); |
