freebsd-dev/sys/netpfil
Conrad Meyer bcd8d3b805 dummynet: Use strlcpy to appease static checkers
Some dummynet modules used strcpy() to copy from a larger buffer
(dn_aqm->name) to a smaller buffer (dn_extra_parms->name).  It happens that
the lengths of the strings in the dn_aqm buffers were always hardcoded to be
smaller than the dn_extra_parms buffer ("CODEL", "PIE").

Use strlcpy() instead, to appease static checkers.  No functional change.

Reported by:	Coverity
CIDs:		1356163, 1356165
Sponsored by:	Dell EMC Isilon
2017-04-13 17:47:44 +00:00
..
ipfw dummynet: Use strlcpy to appease static checkers 2017-04-13 17:47:44 +00:00
pf pf: Fix leak of pf_state_keys 2017-04-01 12:22:34 +00:00