pgsql: pgbench: Install guards against obscure overflow conditions. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: pgbench: Install guards against obscure overflow conditions.
Date
Msg-id E1aQEbr-0001xp-Kf@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/64f5edca2401f6c2f23564da9dd52e92d08b3a20

Modified Files
--------------
src/bin/pgbench/pgbench.c | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Various fixes to "ALTER ... SET/RESET" tab completions
Next
From: Robert Haas
Date:
Subject: pgsql: pgbench: Install guards against obscure overflow conditions.