From c85ce7ce805135d34b11067c502a5f88506cce44 Mon Sep 17 00:00:00 2001 From: bungeman Date: Thu, 17 Mar 2016 10:22:12 -0700 Subject: [PATCH] Use sktarray.begin() instead of &sktarray[0]. Evaluating &sktarray[0] when sktarray.count() == 0 asserts. This was causing ASAN failures. TBR=bsalomon NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1812963002 --- src/gpu/gl/GrGLPath.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpu/gl/GrGLPath.cpp b/src/gpu/gl/GrGLPath.cpp index 6eab7d098d..c15a1a2d62 100644 --- a/src/gpu/gl/GrGLPath.cpp +++ b/src/gpu/gl/GrGLPath.cpp @@ -184,8 +184,9 @@ inline bool init_path_object_for_general_path(GrGLGpu* gpu, GrGLuint pathID, SkASSERT(verbCnt == pathCommands.count()); SkASSERT(numCoords == pathCoords.count()); - GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], - pathCoords.count(), GR_GL_FLOAT, &pathCoords[0])); + GR_GL_CALL(gpu->glInterface(), + PathCommands(pathID, pathCommands.count(), pathCommands.begin(), + pathCoords.count(), GR_GL_FLOAT, pathCoords.begin())); return true; }