Nikolay Sivov : msvcp140/tests: Avoid filling value truncation in memset ( Coverity).
Alexandre Julliard
julliard at winehq.org
Fri May 19 15:59:53 CDT 2017
Module: wine
Branch: master
Commit: a374ff0b8610f4a0d200dbea93e87651b6235961
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a374ff0b8610f4a0d200dbea93e87651b6235961
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri May 19 15:30:17 2017 +0300
msvcp140/tests: Avoid filling value truncation in memset (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/msvcp140/tests/msvcp140.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp140/tests/msvcp140.c b/dlls/msvcp140/tests/msvcp140.c
index 1419669..c964613 100644
--- a/dlls/msvcp140/tests/msvcp140.c
+++ b/dlls/msvcp140/tests/msvcp140.c
@@ -259,7 +259,7 @@ static void test_task_continuation_context(void)
{
task_continuation_context tcc;
- memset(&tcc, 0xdead, sizeof(tcc));
+ memset(&tcc, 0xff, sizeof(tcc));
call_func1(p_task_continuation_context_ctor, &tcc);
ok(!tcc.unk0, "tcc.unk0 != NULL (%p)\n", tcc.unk0);
ok(!tcc.unk1, "tcc.unk1 != 0 (%x)\n", tcc.unk1);
More information about the wine-cvs
mailing list