diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-18 12:37:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-19 09:38:09 +0200 |
commit | 5b52057a64ba9e78cf16c682e15f827d12a0e62e (patch) | |
tree | 0a6ad8a7dbf1bfe3d7f798b020a2475220ae830b /sal | |
parent | baf0502fe915365c09dabb9dc9eb08956ec4bcdc (diff) |
cid#1448293 Copy into fixed size buffer
Change-Id: I0ff36c58bf2448bdccc239582ba24b69c7431c6d
Reviewed-on: https://gerrit.libreoffice.org/75921
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/pipe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/unx/pipe.cxx b/sal/osl/unx/pipe.cxx index e9888e577ec5..c56c7a3c3d17 100644 --- a/sal/osl/unx/pipe.cxx +++ b/sal/osl/unx/pipe.cxx @@ -208,7 +208,8 @@ static oslPipe osl_psz_createPipe(const sal_Char *pszPipeName, oslPipeOptions Op SAL_INFO("sal.osl.pipe", "new pipe on fd " << pPipe->m_Socket << " '" << name << "'"); addr.sun_family = AF_UNIX; - strcpy(addr.sun_path, name.getStr()); // safe, see check above + // coverity[fixed_size_dest : FALSE] - safe, see check above + strcpy(addr.sun_path, name.getStr()); #if defined(FREEBSD) len = SUN_LEN(&addr); #else |