pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix crash in close_ps() for NaN input coordinates.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/278148907a971ec7fa4ffb24248103d8012155d2

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/884bae143c235981e53eae4ea56c47060740e3ee

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/59fa0195c4a735fe2e5a51c4bcc8fde33aef6325

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/16e28fcec2fe235abddd501c17536c3b15a4dcec

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/89b301104a6c5522bb9dc91565ac0e2cb5f4ddb4

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix crash in close_ps() for NaN input coordinates.
@ 2016-07-16 18:43 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2016-07-16 18:43 UTC (permalink / raw)
  To: pgsql-committers

Fix crash in close_ps() for NaN input coordinates.

The Assert() here seems unreasonably optimistic.  Andreas Seltenreich
found that it could fail with NaNs in the input geometries, and it
seems likely to me that it might fail in corner cases due to roundoff
error, even for ordinary input values.  As a band-aid, make the function
return SQL NULL instead of crashing.

Report: <87d1md1xji.fsf@credativ.de>

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/608cc0c413d8bafc853065f80c3b05f84493032a

Modified Files
--------------
src/backend/utils/adt/geo_ops.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2016-07-16 18:43 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-16 18:43 pgsql: Fix crash in close_ps() for NaN input coordinates. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox