Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#941 closed defect (fixed)

Incorrect values returned on error in CAPI

Reported by: dbaston Owned by: geos-devel@…
Priority: major Milestone:
Component: Default Version: 3.6.2
Severity: Unassigned Keywords:
Cc:

Description

In some cases, the CAPI function GEOSLength_r returns 2 on error, when it is documented to return 0. The 2 is likely to be interpreted as "success" by a caller.

In some cases, the CAPI function GEOSIsValidDetail_r returns 0 on error, when it is documented to return 2. The 0 would be falsely interpreted as "geometry invalid."

Change History (4)

comment:2 by Daniel Baston <dbaston@…>, 5 years ago

Resolution: fixed
Status: newclosed

In bfe6b8b/git:

Fix incorrect error return values in CAPI

Fixes #941

comment:3 by Daniel Baston <dbaston@…>, 5 years ago

In 038813ea/git:

Fix incorrect error return values in CAPI

Fixes #941

comment:4 by Daniel Baston <dbaston@…>, 5 years ago

In d1a649f/git:

Fix incorrect error return values in CAPI

Fixes #941

Note: See TracTickets for help on using tickets.