Opened 16 years ago
Closed 16 years ago
#368 closed defect (fixed)
SHP provider: handle corrupted .SHX entries
Reported by: | danstoica | Owned by: | danstoica |
---|---|---|---|
Priority: | major | Milestone: | 3.4.0 |
Component: | SHP Provider | Version: | 3.2.0 |
Severity: | 2 | Keywords: | |
Cc: | External ID: | 1075085 |
Description
The .SHX file contains entries {geometry offset in the .SHP file, geometry size} and the entry number corresponds to the record # in the .DBF file. Found a couple of corrupted .SHX files containing "geometry size" < 0 entries and the provider didn't check for this. The result was a crash during memory allocation.
The fix consists in: a) ignore the corrupted records when building the spatial index and b) return NULL geometries to the user when hitting such records.
Note:
See TracTickets
for help on using tickets.