]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r316777 (by cem)
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Apr 2017 07:32:07 +0000 (07:32 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Apr 2017 07:32:07 +0000 (07:32 +0000)
commiteba3d89e2b9666c50d7c01375a325e8ceaa4f7e7
tree98bdb75cdee65de8546e812c1e059a4ff940fa61
parent0393d830f840c80f0ded4ed8f16722d0b334102a
MFC r316777 (by cem)

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: 13561631356165
Sponsored by: Dell EMC Isilon

git-svn-id: svn://svn.freebsd.org/base/stable/10@317489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netpfil/ipfw/dn_aqm_codel.c
sys/netpfil/ipfw/dn_aqm_pie.c