commit | 8bf5d1754f08a3070c953f31cf20cde27a390cd0 | [log] [tgz] |
---|---|---|
author | mtklein <mtklein@chromium.org> | Wed Dec 09 13:15:07 2015 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Wed Dec 09 13:15:07 2015 -0800 |
tree | 36f291149f427350a542d6368bdb36f3282f2d7e | |
parent | 9b439153fc2a2ddca25de96fe2883cf67aebe3e0 [diff] [blame] |
Another memcpy -> sk_careful_memcpy https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN/builds/3787/steps/dm/logs/stdio dst is null. TBR=herb@google.com BUG=skia: Review URL: https://codereview.chromium.org/1507113007
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 351629d..1572354 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp
@@ -583,7 +583,7 @@ SkASSERT(max >= 0); SkASSERT(!max || dst); int count = SkMin32(max, fPathRef->countPoints()); - memcpy(dst, fPathRef->points(), count * sizeof(SkPoint)); + sk_careful_memcpy(dst, fPathRef->points(), count * sizeof(SkPoint)); return fPathRef->countPoints(); }