freebsd-dev/lib/libc/iconv
Eric van Gyzen 079171874c iconvctl(3): remove superfluous NULL pointer tests
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
2016-05-14 00:35:35 +00:00
..
__iconv_free_list.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
__iconv_get_list.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
__iconv_get_list.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
__iconv.c Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
_strtol.h
_strtoul.h
bsd_iconv.c iconvctl(3): remove superfluous NULL pointer tests 2016-05-14 00:35:35 +00:00
citrus_aliasname_local.h
citrus_bcs_strtol.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_bcs_strtoul.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_bcs.c
citrus_bcs.h
citrus_csmapper.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_csmapper.h - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_db_factory.c Replace malloc+memset with calloc. 2014-06-13 08:28:51 +00:00
citrus_db_factory.h
citrus_db_file.h
citrus_db_hash.c
citrus_db_hash.h
citrus_db.c
citrus_db.h
citrus_esdb_file.h
citrus_esdb.c Use memmove(3) to avoid overlapping copy. 2015-10-29 23:06:33 +00:00
citrus_esdb.h
citrus_fix_grouping.h
citrus_hash.c
citrus_hash.h
citrus_iconv_local.h Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_iconv.c Avoid lookup of CODESET aliases using uninitialized path 2015-02-28 20:30:25 +00:00
citrus_iconv.h Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_lock.h Make it clear that there are three separate internal locks. 2013-07-03 18:35:21 +00:00
citrus_lookup_factory.c Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
citrus_lookup_factory.h
citrus_lookup_file.h
citrus_lookup.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_lookup.h
citrus_mapper_local.h Let iconv build on -HEAD properly. 2013-05-23 18:07:01 +00:00
citrus_mapper.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_mapper.h
citrus_memstream.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_memstream.h
citrus_mmap.c libc: Use namespace.h in a few more files. 2015-12-20 23:05:20 +00:00
citrus_mmap.h
citrus_module.c Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06] 2011-12-23 15:00:37 +00:00
citrus_module.h
citrus_namespace.h
citrus_none.c Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_none.h
citrus_pivot_factory.c
citrus_pivot_factory.h
citrus_pivot_file.h
citrus_prop.c Fix improbable memory leak in _citrus_prop_read_str(). 2015-04-20 22:09:50 +00:00
citrus_prop.h - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_region.h
citrus_stdenc_local.h Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_stdenc_template.h Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_stdenc.c - In the libiconv module for ISO 2022 restore the original order of the 2014-04-01 10:36:11 +00:00
citrus_stdenc.h Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
citrus_types.h
iconv_canonicalize.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
iconv_canonicalize.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconv_close.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconv_compat.c Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
iconv_open_into.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconv_open.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconv_set_relocation_prefix.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconv-internal.h libc: spelling fixes. 2016-04-30 01:24:24 +00:00
iconv.3 Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
iconv.c Remove the const qualifier from iconv(3) to comply with POSIX: 2015-04-15 09:09:20 +00:00
iconvctl.3 use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
iconvctl.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
iconvlist.3 mdoc: improvements to SEE ALSO. 2014-12-27 08:31:52 +00:00
iconvlist.c Move the iconv wrapper source from libc_nonshared to libc/iconv so that 2013-11-25 20:17:55 +00:00
Makefile.inc libc: don't build compat functions if building WITHOUT_SYMVER 2016-03-15 19:26:32 +00:00
Symbol.map Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00