glibc/iconv
Sergey Bugaev 533deafbdf Use O_CLOEXEC in more places (BZ #15722)
When opening a temporary file without O_CLOEXEC we risk leaking the
file descriptor if another thread calls (fork and then) exec while we
have the fd open. Fix this by consistently passing O_CLOEXEC everywhere
where we open a file for internal use (and not to return it to the user,
in which case the API defines whether or not the close-on-exec flag
shall be set on the returned fd).

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230419160207.65988-4-bugaevc@gmail.com>
2023-04-22 13:50:14 +02:00
..
dummy-repertoire.c
gconv_builtin.c
gconv_builtin.h
gconv_cache.c Use O_CLOEXEC in more places (BZ #15722) 2023-04-22 13:50:14 +02:00
gconv_charset.c
gconv_charset.h
gconv_close.c
gconv_conf.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_db.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_dl.c Move libc_freeres_ptrs and libc_subfreeres to hidden/weak functions 2023-03-27 13:57:55 -03:00
gconv_int.h
gconv_open.c
gconv_parseconfdir.h
gconv_simple.c
gconv_trans.c
gconv.c
gconv.h
iconv_charmap.c
iconv_close.c
iconv_open.c
iconv_prog.c
iconv_prog.h
iconv.c
iconv.h
iconvconfig.c
iconvconfig.h
loop.c
Makefile
skeleton.c
strtab.c
test-gconv-modules
tst-gconv-init-failure-mod.c
tst-gconv-init-failure.c
tst-iconv1.c
tst-iconv2.c
tst-iconv3.c
tst-iconv4.c
tst-iconv5.c
tst-iconv6.c
tst-iconv7.c
tst-iconv8.c
tst-iconv9.c
tst-iconv_prog.sh
tst-iconv-mt.c
tst-iconv-opt.c
Versions