basegfx/source/polygon/b2dpolypolygontools.cxx | 2 +- sal/osl/unx/file_misc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit c74605ce004508d69e2014329c13bc9df42e8e8b Author: Pedro Giffuni <p...@apache.org> Date: Wed Dec 2 15:00:54 2015 +0000 Uninitialized scalar value CID: 984038 diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index 24d3892..b4d2531 100644 --- a/basegfx/source/polygon/b2dpolypolygontools.cxx +++ b/basegfx/source/polygon/b2dpolypolygontools.cxx @@ -374,7 +374,7 @@ namespace basegfx { const B2DPolygon aCandidate(rCandidate.getB2DPolygon(a)); sal_uInt32 nNewEdgeIndex; - double fNewCut; + double fNewCut = 0.0; const double fNewDistance(getSmallestDistancePointToPolygon(aCandidate, rTestPoint, nNewEdgeIndex, fNewCut)); if(DBL_MAX == fRetval || fNewDistance < fRetval) commit 7f413ffa8cebd56cb5fb4cdd8138045c26f842de Author: Pedro Giffuni <p...@apache.org> Date: Wed Dec 2 14:47:01 2015 +0000 Off by one using readlink(2) CID 705623, 982797 diff --git a/sal/osl/unx/file_misc.cxx b/sal/osl/unx/file_misc.cxx index 189d7fb..09d1a94 100644 --- a/sal/osl/unx/file_misc.cxx +++ b/sal/osl/unx/file_misc.cxx @@ -969,7 +969,7 @@ static int oslDoCopyLink(const sal_Char* pszSourceFileName, const sal_Char* pszD pszLinkContent[0] = '\0'; - nRet = readlink(pszSourceFileName,pszLinkContent,PATH_MAX); + nRet = readlink(pszSourceFileName,pszLinkContent,PATH_MAX-1); if ( nRet < 0 ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits