Commit Diff
Diff:
331989f02b9c1ca95762b5bf063ebefb0fe34496
e8c4c56bb7b79dd791714747c54ad72f25e3283b
Commit:
e8c4c56bb7b79dd791714747c54ad72f25e3283b
Tree:
085dd930c07be38227fe892e50f93ebc541bc6c5
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Thu Nov 19 08:49:46 2015 UTC
Message:
make sure hash is terminated with a NULL, unearthed on FreeBSD
blob - 4f0341830e4a68bd9212b6becedf963ebf17e313
blob + 76c378eb280f32672ab715538856711b54c03c76
--- dnssec.c
+++ dnssec.c
@@ -747,10 +747,11 @@ base32hex_encode(u_char *input, int len)
u_int64_t tb = 0;
int i;
u_char *p;
- static char ret[32];
+ static char ret[33];
u_char *character = "0123456789abcdefghijklmnopqrstuv=";
+ memset(&ret, 0, sizeof(ret));
p = &ret[0];
ui = input;
repomaster@centroid.eu