glibc/iconv
Siddhesh Poyarekar 9429049c17 iconvconfig: Fix multiple issues
It was noticed on big-endian systems that msgfmt would fail with the
following error:

msgfmt: gconv_builtin.c:70: __gconv_get_builtin_trans: Assertion `cnt < sizeof (map) / sizeof (map[0])' failed.
Aborted (core dumped)

This is only seen on installed systems because it was due to a
corrupted gconv-modules.cache.  iconvconfig had the following issues
(it was specifically freeing fulldir that caused this issue, but other
cleanups are also needed) that this patch fixes.

- Add prefix only if dir starts with '/'
- Use asprintf instead of mempcpy so that the directory string is NULL
  terminated
- Make a copy of the directory reference in new_module so that fulldir
  can be freed within the same scope in handle_dir.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
2021-06-28 09:15:55 +05:30
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_cache.c Use 64 bit time_t stat internally 2021-06-22 12:09:52 -03:00
gconv_charset.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_charset.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_close.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_conf.c gconv_conf: Split out configuration file processing 2021-06-23 08:54:13 +05:30
gconv_db.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_dl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_int.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_open.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_parseconfdir.h Handle DT_UNKNOWN in gconv-modules.d 2021-06-23 08:54:13 +05:30
gconv_simple.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv_trans.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gconv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconv_charmap.c charmap_conversion: Free conversion table on exit 2021-05-18 09:25:40 +05:30
iconv_close.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconv_open.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconv_prog.c Update copyright dates not handled by scripts/update-copyrights. 2021-01-02 12:17:34 -08:00
iconv_prog.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
iconvconfig.c iconvconfig: Fix multiple issues 2021-06-28 09:15:55 +05:30
iconvconfig.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
loop.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile iconvconfig: Fix multiple issues 2021-06-28 09:15:55 +05:30
skeleton.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtab.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-gconv-modules Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv1.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv3.c iconv: use iconv_close after iconv_open 2020-12-21 09:51:40 +05:30
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv7.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv8.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv_prog.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv-mt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-iconv-opt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00