Opened 14 years ago

Closed 14 years ago

#630 closed defect (fixed)

Improve handling of invalid SHX index files

Reported by: waltweltonlair Owned by: waltweltonlair
Priority: major Milestone: 3.5.0
Component: SHP Provider Version: 3.4.0
Severity: 2 Keywords:
Cc: External ID: 1292749

Description

Occasionally a SHP data set includes an invalid shape index file (SHX), and the SHP provider doesn't handle it gracefully. For example, a wrong offset in the SHX can result in a bad invalid content length, and when the provider tries to allocate memory for that content bad things can happen.

A workaround for customers is to delete the SHX file, but we can also make the provider a little more robust.

Change History (4)

comment:1 by waltweltonlair, 14 years ago

Severity: 32
Status: newassigned

comment:2 by waltweltonlair, 14 years ago

Fixed in 3.4 code stream with r5390.

comment:3 by waltweltonlair, 14 years ago

Fixed in trunk with r5391.

comment:4 by waltweltonlair, 14 years ago

Resolution: fixed
Status: assignedclosed

Note: the fix was provided by Steven Xu.

Note: See TracTickets for help on using tickets.