iconv_open: Fix heap corruption on gconv_init failure [BZ #22026]
commit251bccfa1fcb3568e43546b0df33e052889406c1
authorFlorian Weimer <fweimer@redhat.com>
Tue, 29 Aug 2017 15:33:58 +0000 (29 17:33 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 29 Aug 2017 15:33:58 +0000 (29 17:33 +0200)
tree29c7966c2fc0ee4fba8cbf1ddf42123a71b0716e
parente7c18b9d0aacb02f9d6edffdf4d1e26a54fbfb84
iconv_open: Fix heap corruption on gconv_init failure [BZ #22026]

Also mangle the __end_fct function pointer on the error handling
path.
ChangeLog
iconv/Makefile
iconv/gconv_db.c
iconv/test-gconv-modules [new file with mode: 0644]
iconv/tst-gconv-init-failure-mod.c [new file with mode: 0644]
iconv/tst-gconv-init-failure.c [new file with mode: 0644]