#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 20 years ago by pguyot (Paul Guyot)
Status: | new → assigned |
---|
comment:3 Changed 20 years ago by pguyot (Paul Guyot)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Thanks. Committing. I just replaced strcpy with strncpy to avoid buffer overflows.