#376 closed defect (fixed)

pppd's strlcpy/strlcat conflict with newlib

Reported by: Ralf Corsepius Owned by: Joel Sherrill
Priority: highest Milestone: 2
Component: score Version: unknown
Severity: critical Keywords:
Cc: bugs@… Blocked By:


newlib-0.11 provides strlcat and strcpy.
newlib < 0.11 did not.

RTEMS's pppd exports local versions of strlcat and strlcpy.

Recent versions of cpukit/libnetworking apply strlcpy.

=> Using cpukit/libnetworking can pull-in parts of pppd.

=> The file providing strlcpy/strlcat inside of pppd (pppd/utils.c) pulls in further string functions.
IMO, this is a hot candidate for the origin of the increase in size Till is observing.

=> Depending on the version of newlib and on linking details being used, either the pppd or the newlib's versions get used.


Change History (1)

comment:1 Changed on Mar 26, 2003 at 2:06:03 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patches applied to HEAD and 4.6 branch. Ralf removed

the offending implementations from pppd, added auto*
logic to conditionally have implementations in
cpukit/libcsupport, and fixed
cpukit/libnetworking/kern/kern_sysctl.c to not use
the offending routines.

Note: See TracTickets for help on using tickets.