Skip to content

Commit 6098a21

Browse files
pixelflingerAndroid (Google) Code Review
authored andcommitted
Merge "Region cannot handle malformed Rects. Abort the Region op in that case."
2 parents ba8dea0 + 0ee06d1 commit 6098a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/ui/Region.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ void Region::boolean_operation(int op, Region& dst,
482482
if (!rhs.isValid()) {
483483
LOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}",
484484
op, rhs.left, rhs.top, rhs.right, rhs.bottom);
485+
return;
485486
}
486487

487488
#if VALIDATE_WITH_CORECG || VALIDATE_REGIONS

0 commit comments

Comments
 (0)