Обсуждение: pgsql: pgbench: Install guards against obscure overflow conditions.

Поиск
Список
Период
Сортировка

pgsql: pgbench: Install guards against obscure overflow conditions.

От
Robert Haas
Дата:
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
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/829757c8a225e5b81a398823d77fa6c0809cf863

Modified Files
--------------
src/bin/pgbench/pgbench.c | 36 ++++++++++++++++++++++++++++++++++--
1 file changed, 34 insertions(+), 2 deletions(-)