summaryrefslogtreecommitdiff
path: root/src/timezone/ialloc.c
diff options
context:
space:
mode:
authorTom Lane2016-07-16 18:42:37 +0000
committerTom Lane2016-07-16 18:42:37 +0000
commit59fa0195c4a735fe2e5a51c4bcc8fde33aef6325 (patch)
treee446e804ad5ebc5e1e2c87b3fa320b38ceae9e18 /src/timezone/ialloc.c
parent3d5b227bae4addf9509cb0b2255dcef317dbe64f (diff)
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/timezone/ialloc.c')
0 files changed, 0 insertions, 0 deletions