aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-09-01 07:20:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-01 07:20:29 -0700
commitd3030acc2cd46fe5310da0521ce7e85caf1619f6 (patch)
treece9d3a2d8e8fb34764e462e0593a06a8f2f3fd90
parent0590fa549d09bd1b6f26c0d5e470f35efe430d65 (diff)
Fix ASAN int overflow error in GLProgramsTest
TBR=senorblanco@chromium.org GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2289143006 Review-Url: https://codereview.chromium.org/2289143006
-rw-r--r--src/gpu/batches/GrTessellatingPathRenderer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp
index 5412545308..ef6d2d229d 100644
--- a/src/gpu/batches/GrTessellatingPathRenderer.cpp
+++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp
@@ -380,8 +380,9 @@ DRAW_BATCH_TEST_DEFINE(TesselatingPathBatch) {
GrColor color = GrRandomColor(random);
SkMatrix viewMatrix = GrTest::TestMatrixInvertible(random);
SkPath path = GrTest::TestPath(random);
- SkIRect devClipBounds = SkIRect::MakeXYWH(
+ SkIRect devClipBounds = SkIRect::MakeLTRB(
random->nextU(), random->nextU(), random->nextU(), random->nextU());
+ devClipBounds.sort();
bool antiAlias = random->nextBool();
GrStyle style;
do {