summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/malloc/malloc_general/malloc_general.c
diff options
context:
space:
mode:
authorjsing <>2018-11-28 15:51:32 +0000
committerjsing <>2018-11-28 15:51:32 +0000
commit9146b9f89715c0fa5039dde262a76e29bf0be7e1 (patch)
tree89f569e7886b1100fcaafc0b6975a9aec0badcd4 /src/regress/lib/libc/malloc/malloc_general/malloc_general.c
parent901805df68141c51d89f7d3584514f7fd725f10f (diff)
downloadopenbsd-9146b9f89715c0fa5039dde262a76e29bf0be7e1.tar.gz
openbsd-9146b9f89715c0fa5039dde262a76e29bf0be7e1.tar.bz2
openbsd-9146b9f89715c0fa5039dde262a76e29bf0be7e1.zip
Correct lock initialisation for libcrypto.
The current crypto_lock_init() function is not called early enough, meaning that locks are already in use before it gets called. Worse, locks could be in use when they are then initialised. Furthermore, since functions like CRYPTO_lock() are public API, these could be called directly bypassing initialisation. Avoid these issues by using static initialisers. ok bcook@
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_general/malloc_general.c')
0 files changed, 0 insertions, 0 deletions