NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59117 CVS commit: [netbsd-11] src/tests/lib/libc/gen
The following reply was made to PR lib/59117; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59117 CVS commit: [netbsd-11] src/tests/lib/libc/gen
Date: Tue, 20 Oct 2026 19:12:07 +0000
Module Name: src
Committed By: martin
Date: Tue Oct 20 19:12:06 UTC 2026
Modified Files:
src/tests/lib/libc/gen [netbsd-11]: t_arc4random.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #535):
tests/lib/libc/gen/t_arc4random.c: revision 1.6
t_arc4random: Fix test to guarantee global state initialization.
Previously, if pthread_atfork failed, arc4random_global_buf would
fail to initialize the global state as intended. (There are separate
tests for intentional failure of global state initialization.) It is
unlikely for pthread_atfork to fail, but with RLIMIT_AS cranked down
to zero, it may. To ensure that the global state is successfully
initialized for the tests that are trying to exercise it, call
arc4random from another thread first before forcing failure of the
local state initialization.
PR lib/59117: arc4random has some failure modes it shouldn't
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.2.1 src/tests/lib/libc/gen/t_arc4random.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index