commit | dcd1fcc6e9891e1427c8ce4500edac45a8687fbd | [log] [tgz] |
---|---|---|
author | caryclark <caryclark@google.com> | Thu Feb 18 09:00:01 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Feb 18 09:00:01 2016 -0800 |
tree | f37e4ed68ef3532ebc32e0b5ad6cbbbe022b66ea | |
parent | a7e9f05119174848c6be5028568f46eb5e85398e [diff] [blame] |
check for zero conic weights in interp this will fix the current (and uncover the next) ASAN failure TBR=tomhudson@google.com BUG=skia:4549 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1711813002 Review URL: https://codereview.chromium.org/1711813002
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 10e80a4..06bbeef 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp
@@ -205,7 +205,8 @@ count)) { return false; } - return !SkToBool(memcmp(fPathRef->conicWeights(), compare.fPathRef->conicWeights(), + return !fPathRef->countWeights() || + !SkToBool(memcmp(fPathRef->conicWeights(), compare.fPathRef->conicWeights(), fPathRef->countWeights() * sizeof(*fPathRef->conicWeights()))); }