Ticket #2218 (closed defect: fixed)
[PATCH - shapelib] Fix crashes on corrupted geometries
| Reported by: | rouault | Owned by: | rouault |
|---|---|---|---|
| Priority: | low | Milestone: | 1.6.0 |
| Component: | OGR_SF | Version: | unspecified |
| Severity: | normal | Keywords: | shape |
| Cc: |
Description
The attached patch adds checks to SHPReadObject so that hostile/corrupted geometries in a shape entity don't cause shapelib to read memory outside of the declared entity size and pabyRec buffer.
I've attached too a zip file containing a few volontary corrupted shapefiles to demonstrate the crashes (or Valgrind errors) and the fix.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

