projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f134bd0
)
Properly initialize buffers.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 Apr 2014 10:09:48 +0000
(12:09 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 13 Apr 2014 10:09:48 +0000
(12:09 +0200)
Valgrind complained about use of uninitialized data.
src/sptps_speed.c
patch
|
blob
|
history
diff --git
a/src/sptps_speed.c
b/src/sptps_speed.c
index 268e6c9bf0ce388af2cc269b635d6db1f10131fb..d9776b7ef2714086fe2397c67c1832b8b7fcdd86 100644
(file)
--- a/
src/sptps_speed.c
+++ b/
src/sptps_speed.c
@@
-82,6
+82,10
@@
int main(int argc, char *argv[]) {
crypto_init();
+ randomize(buf1, sizeof buf1);
+ randomize(buf2, sizeof buf2);
+ randomize(buf3, sizeof buf3);
+
// Key generation
fprintf(stderr, "Generating keys for %lg seconds: ", duration);