pgsql: Fix crash in close_ps() for NaN input coordinates.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix crash in close_ps() for NaN input coordinates.
Дата
Msg-id E1bOUYN-0008Pf-RK@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix crash in close_ps() for NaN input coordinates.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix crash in close_ps() for NaN input coordinates.