]> 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:26:07 +0000 (08:26 -0500)
commit829757c8a225e5b81a398823d77fa6c0809cf863
tree366db7112147f489d0c7ff1081e8aba1e8ba45dc
parent40482e606733675eb9e5b2f7221186cf81352da1
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