pgsql: pgbench: Install guard against overflow when dividing by -1.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pgbench: Install guard against overflow when dividing by -1.
Date: 2016-02-03 14:28:06
Message-ID: E1aQyPe-00063B-B8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pgbench: Install guard against overflow when dividing by -1.

Commit 64f5edca2401f6c2f23564da9dd52e92d08b3a20 fixed the same hazard
on master; this is a backport, but the modulo operator does not exist
in older releases.

Michael Paquier

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/014796aa3f07f77fa50128044599c96808e929ee

Modified Files
--------------
contrib/pgbench/pgbench.c | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-02-03 15:47:09 pgsql: Remove CustomPath's TextOutCustomPath method.
Previous Message Robert Haas 2016-02-03 14:10:16 pgsql: postgres_fdw: Allow fetch_size to be set per-table or per-server