Opened 16 years ago

Closed 16 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 by tamas, 16 years ago

Milestone: 1.5.2
Resolution: fixed
Status: newclosed

Applied in r14087 and r14088

Note: See TracTickets for help on using tickets.