gfx/skia/uninitialized-margin.patch
author Gregory Szorc <gps@mozilla.com>
Wed, 28 Jan 2015 13:37:00 -0800
branchGECKO140_2012060421_RELBRANCH
changeset 120194 435e31508f3c76fd2038e910012cb946b515e31c
parent 87311 8763e1f49736cb2785123a9beda5d5cd5cf3ebdb
permissions -rw-r--r--
Close old release branch GECKO140_2012060421_RELBRANCH

diff --git a/gfx/skia/src/core/SkDraw.cpp b/gfx/skia/src/core/SkDraw.cpp
--- a/gfx/skia/src/core/SkDraw.cpp
+++ b/gfx/skia/src/core/SkDraw.cpp
@@ -2529,17 +2529,17 @@ static bool compute_bounds(const SkPath&
 
     //  init our bounds from the path
     {
         SkRect pathBounds = devPath.getBounds();
         pathBounds.inset(-SK_ScalarHalf, -SK_ScalarHalf);
         pathBounds.roundOut(bounds);
     }
 
-    SkIPoint margin;
+    SkIPoint margin = SkIPoint::Make(0, 0);
     if (filter) {
         SkASSERT(filterMatrix);
 
         SkMask srcM, dstM;
 
         srcM.fBounds = *bounds;
         srcM.fFormat = SkMask::kA8_Format;
         srcM.fImage = NULL;