| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Fix crash in close_ps() for NaN input coordinates. |
| Date: | 2016-07-16 18:43:07 |
| Message-ID: | E1bOUYN-0008Ph-Ra@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(dot)fsf(at)credativ(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2016-07-16 19:30:23 | pgsql: Add regression test case exercising the sorting path for hash in |
| Previous Message | Tom Lane | 2016-07-16 18:12:49 | pgsql: Clarify usage of clientcert authentication option. |