pgsql: pgbench: Install guards against obscure overflow conditions.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgbench: Install guards against obscure overflow conditions.
Date: 2016-02-01 13:33:39
Message-ID: E1aQEbr-0001xp-Kf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2016-02-01 15:08:14 pgsql: pgbench: allow per-script statistics
Previous Message Fujii Masao 2016-02-01 13:22:07 pgsql: Various fixes to "ALTER ... SET/RESET" tab completions