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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user