diff options
author | 2011-09-26 15:58:20 -0700 | |
---|---|---|
committer | 2011-09-26 15:58:20 -0700 | |
commit | 0ee06d116bc37c8b9a2d90a40651b3f6a0a709f9 (patch) | |
tree | 86946128857e0d9fca1a37821bd4298c1c012932 | |
parent | 71bfec448847d8585c8a789596525dc729350877 (diff) |
Region cannot handle malformed Rects. Abort the Region op in that case.
Bug: 5331198, 5334829
Change-Id: Ib1fdbf6fb291e7f1191ccfe16b5ff29d73e7a474
-rw-r--r-- | libs/ui/Region.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index 8dab291b3c24..565608889d28 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 |