bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posix_spawn fixes


From: Bruno Haible
Subject: posix_spawn fixes
Date: Mon, 10 Jun 2019 17:29:04 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-145-generic; KDE/5.18.0; x86_64; ; )

2019-06-10  Bruno Haible  <address@hidden>

        doc: Document existence of posix_spawn_file_actions_addchdir module.
        * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
        the posix_spawn_file_actions_addchdir module.

2019-06-10  Bruno Haible  <address@hidden>

        posix_spawn_file_actions_addfchdir: New module.
        * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
        * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
        union member 'fchdir_action'.
        * lib/spawn_faction_addfchdir.c: New file.
        * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
        * m4/posix_spawn_faction_addfchdir.m4: New file.
        * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
        'posix_spawn_file_actions_addfchdir' is present and whether
        posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
        * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
        posix_spawn_file_actions_addfchdir is declared.
        (gl_SPAWN_H_DEFAULTS): Initialize
        GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
        HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
        REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
        * modules/spawn (Makefile.am): Substitute
        GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
        HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
        REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
        * modules/posix_spawn_file_actions_addfchdir: New file.
        * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
        signature.
        * doc/posix-functions/posix_spawn.texi: Mention the new module.
        * doc/posix-functions/posix_spawnp.texi: Likewise.
        * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
        Likewise.

2019-06-10  Bruno Haible  <address@hidden>

        posix_spawn_file_actions_addfchdir: Add tests.
        * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
        * tests/test-posix_spawn5.c: New file.
        * modules/posix_spawn_file_actions_addfchdir-tests: New file.

2019-06-10  Bruno Haible  <address@hidden>

        posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
        Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
        * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
        * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
        a copy of the path argument.
        * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
        it.

2019-06-10  Bruno Haible  <address@hidden>

        posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
        * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
        * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
        a copy of the path argument.
        * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
        it.

Attachment: 0001-doc-Document-existence-of-posix_spawn_file_actions_a.patch
Description: Text Data

Attachment: 0002-posix_spawn_file_actions_addfchdir-New-module.patch
Description: Text Data

Attachment: 0003-posix_spawn_file_actions_addfchdir-Add-tests.patch
Description: Text Data

Attachment: 0004-posix_spawn_file_actions_addopen-Fix-possible-use-af.patch
Description: Text Data

Attachment: 0005-posix_spawn_file_actions_addchdir-Fix-possible-use-a.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]