diff options
-rw-r--r-- | bridges/source/cpp_uno/shared/vtablefactory.cxx | 1 | ||||
-rw-r--r-- | idlc/source/idlccompile.cxx | 1 |
2 files changed, 2 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) diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 695db41d2097..45dbfbcfb694 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -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 ) { |