Ticket #2291 (closed defect: fixed)

Opened 6 months ago

Last modified 6 months ago

CPLResetExtension causes memory corruption if the pszPath argument is empty

Reported by: tamas Assigned to: 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

03/26/08 12:51:14 changed by tamas

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.5.2.

Applied in r14087 and r14088