aboutsummaryrefslogtreecommitdiff
path: root/src/backend/lib
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-07-16 14:42:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-07-16 14:42:37 -0400
commit884bae143c235981e53eae4ea56c47060740e3ee (patch)
tree776082b973595ae72bb4dc9781dc484126435812 /src/backend/lib
parent1f9534b49ce3ab02aac65c4033218cc3348d17b8 (diff)
downloadpostgresql-884bae143c235981e53eae4ea56c47060740e3ee.tar.gz
postgresql-884bae143c235981e53eae4ea56c47060740e3ee.zip
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>
Diffstat (limited to 'src/backend/lib')
0 files changed, 0 insertions, 0 deletions