From fae4c736021399750833e24316e19a82f62e21b2 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 13 Mar 2013 01:07:32 -0400 Subject: [PATCH] Allocate space for NUL byte in test code Caught by ASan. --- src/lib/crypto/crypto_tests/t_cf2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/crypto_tests/t_cf2.c b/src/lib/crypto/crypto_tests/t_cf2.c index 3254e972af..c308c261c4 100644 --- a/src/lib/crypto/crypto_tests/t_cf2.c +++ b/src/lib/crypto/crypto_tests/t_cf2.c @@ -47,7 +47,7 @@ #include int main () { - char pepper1[1024], pepper2[1024]; + char pepper1[1025], pepper2[1025]; krb5_keyblock *k1 = NULL, *k2 = NULL, *out = NULL; krb5_data s2k; unsigned int i; -- 2.47.2