de4e2206d5
- Replace malloc+memset with calloc. - iconv_open(3): initialise ci_ilseq_invalid field of _citrus_iconv_shared struct after allocation with malloc. - iconvlist(3): reduce a memory leak by copying strings only once. - iconv(1): - Make invalids variable local to do_conv such that it prints the number of invalid characters of the current file instead of an accumulated value. - Make do_conv return an error when invalid characters have been found. Return EXIT_FAILURE from main if any file contained invalid characters. This matches the behaviour of GNU iconv. - Mark usage with __dead2 attribute. - Make the long_options array const. Tested by: Pavel Timofeev <timp87@gmail.com> |
||
---|---|---|
.. | ||
__iconv_free_list.c | ||
__iconv_get_list.3 | ||
__iconv_get_list.c | ||
__iconv.c | ||
_strtol.h | ||
_strtoul.h | ||
bsd_iconv.c | ||
citrus_aliasname_local.h | ||
citrus_bcs_strtol.c | ||
citrus_bcs_strtoul.c | ||
citrus_bcs.c | ||
citrus_bcs.h | ||
citrus_csmapper.c | ||
citrus_csmapper.h | ||
citrus_db_factory.c | ||
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 | ||
citrus_esdb.h | ||
citrus_fix_grouping.h | ||
citrus_hash.c | ||
citrus_hash.h | ||
citrus_iconv_local.h | ||
citrus_iconv.c | ||
citrus_iconv.h | ||
citrus_lock.h | ||
citrus_lookup_factory.c | ||
citrus_lookup_factory.h | ||
citrus_lookup_file.h | ||
citrus_lookup.c | ||
citrus_lookup.h | ||
citrus_mapper_local.h | ||
citrus_mapper.c | ||
citrus_mapper.h | ||
citrus_memstream.c | ||
citrus_memstream.h | ||
citrus_mmap.c | ||
citrus_mmap.h | ||
citrus_module.c | ||
citrus_module.h | ||
citrus_namespace.h | ||
citrus_none.c | ||
citrus_none.h | ||
citrus_pivot_factory.c | ||
citrus_pivot_factory.h | ||
citrus_pivot_file.h | ||
citrus_prop.c | ||
citrus_prop.h | ||
citrus_region.h | ||
citrus_stdenc_local.h | ||
citrus_stdenc_template.h | ||
citrus_stdenc.c | ||
citrus_stdenc.h | ||
citrus_types.h | ||
iconv_canonicalize.3 | ||
iconv_canonicalize.c | ||
iconv_close.c | ||
iconv_compat.c | ||
iconv_open_into.c | ||
iconv_open.c | ||
iconv_set_relocation_prefix.c | ||
iconv-internal.h | ||
iconv.3 | ||
iconv.c | ||
iconvctl.3 | ||
iconvctl.c | ||
iconvlist.3 | ||
iconvlist.c | ||
Makefile.inc | ||
Symbol.map |