]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/sanitytest.c: fix setitimer usage in timer disarmament
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:05 +0000 (16:58 +0200)
commit1b1a859d3d8aafbdda2977f9955ceee6f32f7ea4
tree26c20a659f3404dd4e89b159ccdaf5578dfe7e95
parentbda2473a44e4534c3c640ce89a0971874165c6df
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)
test/sanitytest.c