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@yahoo.fr>
Context
- [PATCH] coverity#982797: Out-of-bounds write · Julien Nabet (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.