Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdlib Apparently there is a CVE coming for t...
details: https://anonhg.NetBSD.org/src/rev/74420d9cdf47
branches: trunk
changeset: 778468:74420d9cdf47
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Mar 28 10:38:00 2012 +0000
description:
Apparently there is a CVE coming for the bug, so append that to a comment.
diffstat:
tests/lib/libc/stdlib/t_random.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 34f30a98ba7e -r 74420d9cdf47 tests/lib/libc/stdlib/t_random.c
--- a/tests/lib/libc/stdlib/t_random.c Wed Mar 28 10:33:57 2012 +0000
+++ b/tests/lib/libc/stdlib/t_random.c Wed Mar 28 10:38:00 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_random.c,v 1.1 2012/03/28 10:33:57 jruoho Exp $ */
+/* $NetBSD: t_random.c,v 1.2 2012/03/28 10:38:00 jruoho Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_random.c,v 1.1 2012/03/28 10:33:57 jruoho Exp $");
+__RCSID("$NetBSD: t_random.c,v 1.2 2012/03/28 10:38:00 jruoho Exp $");
#include <atf-c.h>
#include <stdlib.h>
@@ -52,6 +52,9 @@
size_t i, j;
long x;
+ /*
+ * See CVE-2012-1577.
+ */
srandom(0);
for (i = j = 0; i < n; i++) {
Home |
Main Index |
Thread Index |
Old Index