libsrtp icon indicating copy to clipboard operation
libsrtp copied to clipboard

Intermittent stat_driver failure on sparc 64 target

Open jfigus opened this issue 13 years ago • 0 comments

This issue was reported by Daniel Pocock while troubleshooting the following bug reported on the Debian distro:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628583

The problem is stat_driver doesn't initialize the nonce value to zero. Whatever memory happens to reside in the nonce value is used for the test. The following patch resolves the problem.

diff --git a/crypto/test/stat_driver.c b/crypto/test/stat_driver.c index f9d75b7..145cd02 100644 --- a/crypto/test/stat_driver.c +++ b/crypto/test/stat_driver.c @@ -51,6 +51,7 @@ main (int argc, char *argv[]) {

printf("statistical tests driver\n");

  • v128_set_to_zero(&nonce); for (i=0; i < 2500; i++) buffer[i] = 0;

jfigus avatar Jul 23 '13 08:07 jfigus