krb5 commit: Allocate space for NUL byte in test code
Greg Hudson
ghudson at MIT.EDU
Fri Mar 15 02:32:14 EDT 2013
https://github.com/krb5/krb5/commit/fae4c736021399750833e24316e19a82f62e21b2
commit fae4c736021399750833e24316e19a82f62e21b2
Author: David Benjamin <davidben at mit.edu>
Date: Wed Mar 13 01:07:32 2013 -0400
Allocate space for NUL byte in test code
Caught by ASan.
src/lib/crypto/crypto_tests/t_cf2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/crypto/crypto_tests/t_cf2.c b/src/lib/crypto/crypto_tests/t_cf2.c
index 3254e97..c308c26 100644
--- a/src/lib/crypto/crypto_tests/t_cf2.c
+++ b/src/lib/crypto/crypto_tests/t_cf2.c
@@ -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;
More information about the cvs-krb5
mailing list