]> granicus.if.org Git - postgresql/commit
pgbench: Install guards against obscure overflow conditions.
authorRobert Haas <rhaas@postgresql.org>
Mon, 1 Feb 2016 13:23:41 +0000 (08:23 -0500)
committerRobert Haas <rhaas@postgresql.org>
Mon, 1 Feb 2016 13:23:41 +0000 (08:23 -0500)
commit64f5edca2401f6c2f23564da9dd52e92d08b3a20
tree15b5fa0c34d6b2d3bac61a0a5f61de1b70643a1a
parent89611c4dfa67630f7dcc25881c17cbd1b2e24ea1
pgbench: Install guards against obscure overflow conditions.

Dividing INT_MIN by -1 or taking INT_MIN modulo -1 can sometimes
cause floating-point exceptions or otherwise misbehave.

Fabien Coelho and Michael Paquier
src/bin/pgbench/pgbench.c