From a970cabc5c5ca4c91cd03aa9a417a4cec543e07d Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 26 Sep 2011 15:58:20 -0700 Subject: [PATCH] Region cannot handle malformed Rects. Abort the Region op in that case. Bug: 5331198, 5334829 Change-Id: I05f2aaa95c55fe9e4a5d23180bb3032896c88151 --- libs/ui/Region.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 8dab291b3..565608889 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -482,6 +482,7 @@ void Region::boolean_operation(int op, Region& dst, if (!rhs.isValid()) { LOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}", op, rhs.left, rhs.top, rhs.right, rhs.bottom); + return; } #if VALIDATE_WITH_CORECG || VALIDATE_REGIONS