Fix uninitialized read in simplifyRect()
Bug: oss-fuzz:21976 Change-Id: I635b9092bc4a30bb6a23ddcf1430a3ec06b9d598 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287377 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com> Auto-Submit: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
2329db1171
commit
3d919c5301
@ -172,7 +172,7 @@ void GrShape::simplifyRect(const SkRect& rect, SkPathDirection dir, unsigned sta
|
||||
if (flags & kSimpleFill_Flag) {
|
||||
// A zero area, filled shape so go straight to empty
|
||||
this->setType(Type::kEmpty);
|
||||
} else if (!fRect.width() ^ !fRect.height()) {
|
||||
} else if (!rect.width() ^ !rect.height()) {
|
||||
// A line, choose the first point that best matches the starting index
|
||||
SkPoint p1 = {rect.fLeft, rect.fTop};
|
||||
SkPoint p2 = {rect.fRight, rect.fBottom};
|
||||
|
Loading…
Reference in New Issue
Block a user