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

Robert Haas <rhaas@postgresql.org>

Commit: b63a4f418f5611272f28d0633932ffbf3bbd3015
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-02-03T14:21:44Z
Releases: 9.2.15
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

Files

PathChange+/−
contrib/pgbench/pgbench.c modified +29 −1