another null src, memcpy -> sk_careful_memcpy
authormtklein <mtklein@chromium.org>
Thu, 10 Dec 2015 15:42:47 +0000 (07:42 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Dec 2015 15:42:47 +0000 (07:42 -0800)
https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN/builds/3798/steps/dm/logs/stdio

BUG=skia:

Review URL: https://codereview.chromium.org/1510903005

src/xml/SkDOM.cpp

index 68e2938d9a347b115ead05640cb2a076c50922c0..0f0b614f1116bed80ccf7cf5f4a1e6f9d9d43d34 100644 (file)
@@ -240,7 +240,7 @@ protected:
         }
         *fParentStack.push() = node;
 
-        memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr));
+        sk_careful_memcpy(node->attrs(), fAttrs.begin(), attrCount * sizeof(SkDOM::Attr));
         fAttrs.reset();
 
     }