Opened 17 years ago
Last modified 15 years ago
#132 closed defect (fixed)
CAPI GEOSEqualsExact() segfaults comparing POINTs
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | C API | Version: | main |
Severity: | Significant | Keywords: | imported, phpbugtracker |
Cc: | mloskot |
Description (last modified by )
To be exact, it segfaults when one of the points is empty. I.e., the following code fails:
geom = GEOSGeomFromWKT("POINT(44 32.2)"); geom2 = GEOSGeomFromWKT("POINT EMPTY"); GEOSEqualsExact(geom, geom2, 0);
A backtrace looks like:
#0 geos::geom::Geometry::equal (this=0x80f91d8, a=@0x0, b=@0x80fd6b0, tolerance=0) at Coordinate.inl:80 #1 0xb7aebe84 in geos::geom::Point::equalsExact (this=0x80f91d8, other=0x80f0fd8, tolerance=0) at Point.cpp:200 #2 0xb7ba80d3 in GEOSEqualsExact (g1=0x80f91d8, g2=0x80f0fd8, tolerance=0) at geos_c.cpp:414
System details are the same as reported in bug #126
Change History (4)
comment:3 by , 16 years ago
Cc: | added |
---|---|
Component: | C-API → C API |
Description: | modified (diff) |
Milestone: | imported → 3.0.0 |
Priority: | 1 → critical |
Severity: | Unassigned → Significant |
Version: | 3.0.0 → svn-trunk |
Note:
See TracTickets
for help on using tickets.