Opened 12 years ago

Closed 12 years ago

#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 (1)

comment:1 Changed 12 years ago by tamas

Milestone: 1.5.2
Resolution: fixed
Status: newclosed

Applied in r14087 and r14088

Note: See TracTickets for help on using tickets.