Ticket #2291 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by tamas

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

Applied in r14087 and r14088

Note: See TracTickets for help on using tickets.