Ticket #1385 (closed defect: fixed)
ST_Extent() segfaults on null geometries
| Reported by: | rouault | Owned by: | strk |
|---|---|---|---|
| Priority: | critical | Milestone: | PostGIS 2.0.0 |
| Component: | postgis | Version: | trunk |
| Keywords: | Cc: |
Description
The following sequence causes a crash in BOX3D_combine(), line 348, on "GSERIALIZED *geom = (GSERIALIZED*)PG_DETOAST_DATUM(PG_GETARG_POINTER(1))"
CREATE TABLE test_crash_st_extent ( foo VARCHAR )
SELECT AddGeometryColumn('public','test_crash_st_extent','wkb_geometry',0,'GEOMETRY',2)
INSERT INTO test_crash_st_extent (foo) VALUES ('bar')
SELECT ST_Extent(\"wkb_geometry\") FROM test_crash_st_extent
Attached patch fixes the segfault
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

