summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/arc4random/getentropy_solaris.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-07-19 11:35:09 +0000
committerschwarze <schwarze@openbsd.org>2014-07-19 11:35:09 +0000
commit8147578414af9663e24289e895fc689a48a1de06 (patch)
tree4e7bb0f18ed8fd4261515e76cc90b568213e898b /lib/libcrypto/arc4random/getentropy_solaris.c
parentDocument that abort() is async signal safe now that it doesn't flush (diff)
downloadwireguard-openbsd-8147578414af9663e24289e895fc689a48a1de06.tar.xz
wireguard-openbsd-8147578414af9663e24289e895fc689a48a1de06.zip
Security fix:
Validate the name of the file to show before opening it. Only allow relative filenames starting with "man" or "cat" and containing neither "/.." nor "../". While here, correct the condition discarding an initial "./". Vulnerability found by Sebastien Marie <semarie-openbsd at latrappe dot fr>. Many thanks for sending a patch; however, i did not use it but made the checks even stricter.
Diffstat (limited to 'lib/libcrypto/arc4random/getentropy_solaris.c')
0 files changed, 0 insertions, 0 deletions