forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit884bae1
committed
Fix crash in close_ps() for NaN input coordinates.
The Assert() here seems unreasonably optimistic. Andreas Seltenreichfound that it could fail with NaNs in the input geometries, and itseems likely to me that it might fail in corner cases due to roundofferror, even for ordinary input values. As a band-aid, make the functionreturn SQL NULL instead of crashing.Report: <87d1md1xji.fsf@credativ.de>1 parent1f9534b commit884bae1
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2914 | 2914 |
| |
2915 | 2915 |
| |
2916 | 2916 |
| |
2917 |
| - | |
| 2917 | + | |
2918 | 2918 |
| |
2919 | 2919 |
| |
2920 | 2920 |
| |
| |||
2923 | 2923 |
| |
2924 | 2924 |
| |
2925 | 2925 |
| |
2926 |
| - | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
2927 | 2935 |
| |
2928 | 2936 |
| |
2929 | 2937 |
| |
|
0 commit comments
Comments
(0)