Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#382 closed defect (fixed)

"Memory allocation failed" when attempting to get FGF text from certain features

Reported by: jng Owned by: gregboone
Priority: critical Milestone: 3.4.0
Component: FDO API Version: 3.2.0
Severity: 1 Keywords:
Cc: mloskot External ID:

Description (last modified by mloskot)

Trying to get the fgf text from certain geometries will result in a "Memory allocation failed" error being thrown.

Steps to reproduce:

  • Connect to Parcels.shp in Providers/SHP/TestData/Sheboygan
  • Get the fgf binary of FeatId = 97
  • Create an IGeometry instance from this fgf
  • Call the Text property, the error is thrown here

mloskot: I have added reference to the thread on the list: How does FDO handle invalid fgf geometries?

Attachments (1)

PatchFor#382.patch (29.6 KB ) - added by gregboone 16 years ago.
Resolution of the issue

Download all attachments as: .zip

Change History (7)

comment:1 by mloskot, 16 years ago

Cc: mloskot added
Description: modified (diff)

comment:2 by jng, 16 years ago

Additional notes by Dan Stoica:

Did some investigations on this matter. Turns out that:

a) the polygon in question has a ring which is not closed. b) the geometry factory throws an appropriate exception "Open ring" c) the exception is not caught by GetText() d) for some odd reason the exception is turned into "memory allocation error"

comment:3 by gregboone, 16 years ago

Status: newassigned

comment:4 by gregboone, 16 years ago

Milestone: 3.4.0

by gregboone, 16 years ago

Attachment: PatchFor#382.patch added

Resolution of the issue

comment:5 by gregboone, 16 years ago

Resolution: fixed
Status: assignedclosed

comment:6 by mloskot, 16 years ago

For easier reference, the fix submission is r4080

Note: See TracTickets for help on using tickets.