2773c65343
convname and dst are guaranteed to be non-NULL by iconv_open(3). src is an array. Remove these tests for NULL pointers. While I'm here, eliminate a strlcpy with a correct but suspicious-looking calculation for the third parameter (i.e. not a simple sizeof). Compare the strings in-place instead of copying. Found by: bdrewery Found by: Coverity CID: 1130050, 1130056 MFC after: 3 days Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D6338 |
||
---|---|---|
.. | ||
autofs | ||
bluetooth | ||
casper | ||
defaults | ||
devd | ||
etc.aarch64 | ||
etc.amd64 | ||
etc.arm | ||
etc.i386 | ||
etc.mips | ||
etc.pc98 | ||
etc.powerpc | ||
etc.riscv | ||
etc.sparc64 | ||
gss | ||
mtree | ||
newsyslog.conf.d | ||
ntp | ||
pam.d | ||
periodic | ||
pkg | ||
rc.d | ||
root | ||
sendmail | ||
amd.map | ||
apmd.conf | ||
auto_master | ||
crontab | ||
csh.cshrc | ||
csh.login | ||
csh.logout | ||
ddb.conf | ||
devd.conf | ||
devfs.conf | ||
dhclient.conf | ||
disktab | ||
fbtab | ||
freebsd-update.conf | ||
ftpusers | ||
gettytab | ||
group | ||
hosts | ||
hosts.allow | ||
hosts.equiv | ||
hosts.lpd | ||
inetd.conf | ||
libalias.conf | ||
libmap.conf | ||
login.access | ||
login.conf | ||
mac.conf | ||
Makefile | ||
Makefile.depend | ||
man.alias | ||
master.passwd | ||
minfree | ||
motd | ||
netconfig | ||
netstart | ||
network.subr | ||
networks | ||
newsyslog.conf | ||
nls.alias | ||
nscd.conf | ||
nsmb.conf | ||
nsswitch.conf | ||
ntp.conf | ||
opieaccess | ||
pccard_ether | ||
pf.os | ||
phones | ||
portsnap.conf | ||
printcap | ||
profile | ||
protocols | ||
rc | ||
rc.bsdextended | ||
rc.firewall | ||
rc.initdiskless | ||
rc.resume | ||
rc.sendmail | ||
rc.shutdown | ||
rc.subr | ||
rc.suspend | ||
regdomain.xml | ||
remote | ||
rpc | ||
services | ||
shells | ||
snmpd.config | ||
sysctl.conf | ||
syslog.conf | ||
termcap.small |