[Libreoffice-commits] core.git: sal/osl

Julien Nabet serval2412 at yahoo.fr
Fri Mar 1 21:38:04 PST 2013


 sal/osl/unx/file_misc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 95f8cb6823f21dd97b380136286e87e0ffa2fb24
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Mar 1 19:19:02 2013 +0100

    coverity#982797: Out-of-bounds write
    
    Change-Id: I58f2040ffc7d56e8e4418a29de0dd4d263defbd2
    Reviewed-on: https://gerrit.libreoffice.org/2499
    Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>

diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx
index b91d803..cbfc52f 100644
--- a/sal/osl/unx/file_misc.cxx
+++ b/sal/osl/unx/file_misc.cxx
@@ -1009,7 +1009,7 @@ static int oslDoCopyLink(const sal_Char* pszSourceFileName, const sal_Char* pszD
 
     /* mfe: if dest file is symbolic link remove the link and place the file instead (hro says so) */
     /* mfe: if source is a link copy the link and not the file it points to (hro says so) */
-    sal_Char pszLinkContent[PATH_MAX];
+    sal_Char pszLinkContent[PATH_MAX+1];
 
     pszLinkContent[0] = '\0';
 


More information about the Libreoffice-commits mailing list