pgsql: Put in some more safeguards against executing a division-by-zero - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Put in some more safeguards against executing a division-by-zero
Date
Msg-id E1PyBcG-0003SN-DX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Put in some more safeguards against executing a division-by-zero.

Add dummy returns before every potential division-by-zero in int8.c,
because apparently further "improvements" in gcc's optimizer have
enabled it to break functions that weren't broken before.

Aurelien Jarno, via Martin Pitt

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/72330995a52fb7a3fbdc666aebc0402cdcbc9af8

Modified Files
--------------
src/backend/utils/adt/int8.c |   17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Put in some more safeguards against executing a division-by-zero
Next
From: Tom Lane
Date:
Subject: pgsql: Put in some more safeguards against executing a division-by-zero