[pcre-dev] [Bug 2010] New: sljitProtExecAllocator temp file …

Page principale
Supprimer ce message
Auteur: admin
Date:  
À: pcre-dev
Nouveaux-sujets: [pcre-dev] [Bug 2010] sljitProtExecAllocator temp file descriptor isn't CLOEXEC
Sujet: [pcre-dev] [Bug 2010] New: sljitProtExecAllocator temp file descriptor isn't CLOEXEC
https://bugs.exim.org/show_bug.cgi?id=2010

            Bug ID: 2010
           Summary: sljitProtExecAllocator temp file descriptor isn't
                    CLOEXEC
           Product: PCRE
           Version: N/A
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: chpe@???
                CC: pcre-dev@???


Libraries that open files should make sure the FD is closed on exec, so either
open using O_CLOEXEC, or set FD_CLOEXEC on the FD later.

Here the (temp) file is opened using mkstemp(), so an fcntl(fd, F_SETFD,
FD_CLOEXEC) should be placed immediately afterwards.

--
You are receiving this mail because:
You are on the CC list for the bug.