NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/59117 CVS commit: src



The following reply was made to PR lib/59117; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59117 CVS commit: src
Date: Sun, 2 Mar 2025 21:35:59 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun Mar  2 21:35:59 UTC 2025
 
 Modified Files:
 	src/lib/libc/gen: arc4random.c
 	src/lib/libc/include: arc4random.h
 	src/tests/lib/libc/gen: t_arc4random.c
 
 Log Message:
 arc4random(3): Avoid failure due to thread key limits.
 
 If thr_keycreate (a.k.a. pthread_key_create) fails, fall back to
 using globally serialized state instead of per-thread state.  This is
 unlikely to happen but arc4random(3) should work even if it does.
 New test case forces exercising this path (at least, simulating the
 effect of key creation failure).
 
 PR lib/59117: arc4random has some failure modes it shouldn't
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.38 -r1.39 src/lib/libc/gen/arc4random.c
 cvs rdiff -u -r1.1 -r1.2 src/lib/libc/include/arc4random.h
 cvs rdiff -u -r1.1 -r1.2 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