commit | a11053891225b7c08466eef37068d8ff2dada168 | [log] [tgz] |
---|---|---|
author | caryclark <caryclark@google.com> | Thu Feb 18 06:13:25 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 18 06:13:25 2016 -0800 |
tree | 82789ac4454a24df162e43e50672c68353b8d09c | |
parent | ef0fed3bf06de231b66be5f5279468afd01e6f75 [diff] |
fix asan error deref-ing null ptr TBR=tomhudson@google.com BUG=skia:4549 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1709023002 Review URL: https://codereview.chromium.org/1709023002
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 4c2f897..10e80a4 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp
@@ -214,6 +214,9 @@ if (verbCount != ending.fPathRef->countVerbs()) { return false; } + if (!verbCount) { + return true; + } out->reset(); out->addPath(*this); fPathRef->interpolate(*ending.fPathRef, weight, out->fPathRef);