]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/sanitytest.c: fix setitimer usage in timer disarmament openssl-3.4
authorEugene Syromiatnikov <esyr@openssl.org>
Sun, 10 Aug 2025 00:00:25 +0000 (02:00 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 11 Aug 2025 14:58:24 +0000 (16:58 +0200)
commit4df63e0aaad565359cd1729ae09c7851a7db4479
treef7d16fdb4aaa677efa69b02c35f3f49df7f7335f
parent6f92d38ee89761942d5050e6c932c3a38b15a98e
test/sanitytest.c: fix setitimer usage in timer disarmament

It is incorrect to call setitimer(which, NULL, NULL) to disarm a timer,
Linux just gives a pass on that;  properly provide a zeroed-out
structure instead.

Fixes: 760929f6ba18 "crypto/sleep.c: avoid returning early due to signal"
Reported-by: Neil Horman <nhorman@openssl.org>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28215)

(cherry picked from commit 1b1a859d3d8aafbdda2977f9955ceee6f32f7ea4)
test/sanitytest.c