From: huayong.xu Date: Tue, 7 Mar 2023 02:03:07 +0000 (+0800) Subject: Fix a heap-buffer-overflow issue. X-Git-Tag: accepted/tizen/unified/20230321.123205~1^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed6540ebd6eb6936886afd88a423a97639600ba8;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Fix a heap-buffer-overflow issue. Change-Id: I700ea4b211ac7e2cb9a8618d7cc86eb8482719df --- diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-controller.cpp b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-controller.cpp index 04d193c42..319ec6751 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-controller.cpp +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-graphics-controller.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Samsung Electronics Co., Ltd. + * Copyright (c) 2023 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -1214,7 +1214,7 @@ Graphics::UniquePtr TestGraphicsController::CreateProgram(con source.resize(graphicsShader->mCreateInfo.sourceSize); memcpy(&source[0], graphicsShader->mCreateInfo.sourceData, graphicsShader->mCreateInfo.sourceSize); - if(!std::equal(source.begin(), source.end(), cacheEntry.shaders[shader.pipelineStage].begin())) + if(!std::equal(source.begin(), source.end(), cacheEntry.shaders[shader.pipelineStage].begin(), cacheEntry.shaders[shader.pipelineStage].end())) { found = false; break;