[PATCH] coverity#982797: Out-of-bounds write

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Fri Mar 1 10:52:38 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2499

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/99/2499/1

coverity#982797: Out-of-bounds write

Change-Id: I58f2040ffc7d56e8e4418a29de0dd4d263defbd2
---
M sal/osl/unx/file_misc.cxx
1 file changed, 1 insertion(+), 1 deletion(-)



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 @@
 
     /* 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';
 

-- 
To view, visit https://gerrit.libreoffice.org/2499
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I58f2040ffc7d56e8e4418a29de0dd4d263defbd2
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>



More information about the LibreOffice mailing list