]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential divide by zero error
authorNeil Horman <nhorman@openssl.org>
Fri, 2 Feb 2024 13:10:32 +0000 (08:10 -0500)
committerPauli <ppzgs1@gmail.com>
Wed, 24 Apr 2024 01:39:41 +0000 (11:39 +1000)
commitd092208bd694c9f9b276965bcf2d33f164535b2f
tree5c63da0af1167d3caf79c29feecf7fd56201a7cd
parent264ff64b9443e60c7c93af0ced2b22fdf622d179
Fix potential divide by zero error

Coverity caught the following issues:
1591477
1591475
1591473
1591470

all of which are simmilar, in that they catch potential divide by zero
in double values.  It can't actually happen since the the threads which
increment these counters don't exit until they reach non-zero values,
but its easy to add the checks, so lets do that to ensure that we don't
change something in the future that causes it.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23462)
test/threadstest.c