[LLVMbugs] [Bug 7404] New: Unix Path::makeUnique always generates the same name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 17 17:07:56 PDT 2010


           Summary: Unix Path::makeUnique always generates the same name
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tronic+hfu3 at trn.iki.fi
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5050)
 --> (http://llvm.org/bugs/attachment.cgi?id=5050)
Rewrite of unique name generation

The fallback when neither mkstemp nor mktemp is available had several bugs in
it, leading to non-unique temporary filenames being generated. The attached
patch greatly improves the situation, allowing parallel builds (make -j4) to
succeed, even though the code still isn't safe security-wise.

Note: getpid() is used and assumed to be available (hopefully this doesn't
cause trouble on some really obscure Unix systems).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list