Kaydet (Commit) 35f75566 authored tarafından Caolán McNamara's avatar Caolán McNamara

add link to mkstemp coverity warning wrt threading fiasco

Change-Id: Ic8fea32a163ca5e85ac3e2a34d04e4fa1a1943f9
üst 78d35f28
......@@ -247,6 +247,7 @@ bool VtableFactory::createBlock(Block &block, sal_Int32 slotCount) const
OString aTmpName = OUStringToOString(strDirectory, osl_getThreadTextEncoding());
char *tmpfname = new char[aTmpName.getLength()+1];
strncpy(tmpfname, aTmpName.getStr(), aTmpName.getLength()+1);
// coverity[secure_temp] - https://communities.coverity.com/thread/3179
if ((block.fd = mkstemp(tmpfname)) == -1)
fprintf(stderr, "mkstemp(\"%s\") failed: %s\n", tmpfname, strerror(errno));
if (block.fd == -1)
......
......@@ -153,6 +153,7 @@ OString makeTempName(const OString& prefix)
strncat(tmpFilePattern, "XXXXXX", sizeof(tmpFilePattern)-1-strlen(tmpFilePattern));
#ifdef SAL_UNX
// coverity[secure_temp] - https://communities.coverity.com/thread/3179
int nDescriptor = mkstemp(tmpFilePattern);
if( -1 == nDescriptor )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment