]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-json: add iszero_safe guards for float division at index 0 and 1 41601/head
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 11 Apr 2026 21:52:47 +0000 (22:52 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 12 Apr 2026 12:25:28 +0000 (13:25 +0100)
commit44296e41db20b40d0b9a4cbe320d262ffdd8905d
tree17c21abf2dece7a4bb4c0ac9df77021883055a5e
parentefccc0dc2311ef21cb10334a2594616f340a415f
test-json: add iszero_safe guards for float division at index 0 and 1

The existing iszero_safe guards at index 9 and 10 were added to
silence Coverity, but the same division-by-float-zero warning also
applies to the divisions at index 0 (DBL_MIN) and 1 (DBL_MAX).

CID#1587762

Follow-up for 7f133c996c8b1ea9219540ec8f966b64b58d30a6
src/test/test-json.c