summaryrefslogtreecommitdiff
path: root/bridges/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-15 09:41:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-15 12:30:42 +0000
commit35f75566501d4c2455b393e04d25da11c67495ee (patch)
treef6fcd4a553af60f671a445e8575fa85e9d9df7ab /bridges/source
parent78d35f281c33b9f62a5b7c8d20817ea822e1b0c8 (diff)
add link to mkstemp coverity warning wrt threading fiasco
Change-Id: Ic8fea32a163ca5e85ac3e2a34d04e4fa1a1943f9
Diffstat (limited to 'bridges/source')
-rw-r--r--bridges/source/cpp_uno/shared/vtablefactory.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx
index 865dd6638a22..2e2d74c673db 100644
--- a/bridges/source/cpp_uno/shared/vtablefactory.cxx
+++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx
@@ -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)