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

From Robert Haas
Subject pgsql: pgbench: Install guard against overflow when dividing by -1.
Date
Msg-id E1aQyPe-00063E-BG@gemulon.postgresql.org
Whole thread Raw
List 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_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4c8b07d3c4300dd9e6e3a8b6dc8260c128a9cd75

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


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: pgbench: Install guard against overflow when dividing by -1.
Next
From: Robert Haas
Date:
Subject: pgsql: pgbench: Install guard against overflow when dividing by -1.