]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Allocate space for NUL byte in test code
authorDavid Benjamin <davidben@mit.edu>
Wed, 13 Mar 2013 05:07:32 +0000 (01:07 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 15 Mar 2013 06:00:53 +0000 (02:00 -0400)
Caught by ASan.

src/lib/crypto/crypto_tests/t_cf2.c

index 3254e972af9383c66f7a25cc2bf92919960c62bc..c308c261c4b2a2ecd9f004a712d2aaeef88ce4d6 100644 (file)
@@ -47,7 +47,7 @@
 #include <string.h>
 
 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;