]> sourceware.org Git - newlib-cygwin.git/commit
upstream OpenBSD: arc4random: replace abort() with _exit()
authorderaadt <deraadt@openbsd.org>
Sun, 24 Mar 2019 17:56:54 +0000 (17:56 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 10 Sep 2022 18:58:03 +0000 (20:58 +0200)
commitdb5e07368c10fb6c362343d94775ab0a3248d0e7
tree88d16eaf1502b379eda18c432c454c0c1e615f50
parentdd22053feefe83515416a2977ec9943809c93754
upstream OpenBSD: arc4random: replace abort() with _exit()

In the incredibly unbelievable circumstance where _rs_init() fails to
allocate pages, don't call abort() because of corefile data leakage
concerns, but simply _exit(). The reasoning is _rs_init() will only fail
if someone finds a way to apply specific pressure against this failure
point, for the purpose of leaking information into a core which they can
read. We don't need a corefile in this instance to debug that. So take
this "lever" away from whoever in the future wants to do that.
newlib/libc/stdlib/arc4random.c
This page took 0.027577 seconds and 5 git commands to generate.