Skip to content

Commit 7b84950

Browse files
committed
unit-test: Fix copypasta error
Valgrind found an uninitialized read in a unit test
1 parent 2c73796 commit 7b84950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit-test/test_memory_functional.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ static void _test_memory_attestation(void** state)
107107
uint8_t expected_pubkey[64];
108108
memset(expected_pubkey, 0x55, sizeof(expected_pubkey));
109109
uint8_t expected_certificate[64];
110-
memset(expected_pubkey, 0x66, sizeof(expected_certificate));
110+
memset(expected_certificate, 0x66, sizeof(expected_certificate));
111111
uint8_t expected_root_pubkey_identifier[32];
112-
memset(expected_pubkey, 0x77, sizeof(expected_root_pubkey_identifier));
112+
memset(expected_root_pubkey_identifier, 0x77, sizeof(expected_root_pubkey_identifier));
113113

114114
uint8_t pubkey[64];
115115
uint8_t certificate[64];

0 commit comments

Comments
 (0)