Region cannot handle malformed Rects. Abort the Region op in that case.

Bug: 5331198, 5334829
Change-Id: Ib1fdbf6fb291e7f1191ccfe16b5ff29d73e7a474
This commit is contained in:
Mathias Agopian 2011-09-26 15:58:20 -07:00
parent 1098f105e5
commit 0857c8f7f1
1 changed files with 1 additions and 0 deletions

View File

@ -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