Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2654 closed defect (fixed)

BUG:pextlib1.0/compat.c-1.1+

Reported by: dms@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.0
Keywords: Cc: pguyot (Paul Guyot)
Port:

Description

pextlib1.0/compat.c-1.1+

Patch: URL

Summary: Some implementations of dirname(3) break CompatFileNormalize()

Description: As mentioned on the dirname(3) man page, some implementations modify the string referenced by its argument. On such a system, CompatFileNormalize() breaks after thePath is passed to dirname(3). My patch passes a reference to a copy instead.

Change History (3)

comment:1 Changed 19 years ago by pguyot (Paul Guyot)

Status: newassigned

Thanks. Committing. I just replaced strcpy with strncpy to avoid buffer overflows.

comment:2 Changed 19 years ago by toby@…

Can this be closed?

comment:3 Changed 19 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.