Ticket #2291 (closed defect: fixed)
CPLResetExtension causes memory corruption if the pszPath argument is empty
| Reported by: | tamas | Owned by: | tamas |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.2 |
| Component: | default | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
CPLResetExtension causes memory corruption if the pszPath argument is empty. In this case the initial value of the iteration is the largest size_t value: for( i = strlen(pszStaticResult) - 1; i > 0; i-- )
Change History
Note: See
TracTickets for help on using
tickets.
