pgbench: Install guard against overflow when dividing by -1.
authorRobert Haas <[email protected]>
Wed, 3 Feb 2016 14:15:29 +0000 (09:15 -0500)
committerRobert Haas <[email protected]>
Wed, 3 Feb 2016 14:25:34 +0000 (09:25 -0500)
commit4c8b07d3c4300dd9e6e3a8b6dc8260c128a9cd75
treeeb4538e4b95c99f39e77216aa9af221809986f3a
parent79782b4075ab03708e3cc645b77b9a2635d85afa
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
contrib/pgbench/pgbench.c