From: John Wolfe Date: Thu, 8 Sep 2022 21:51:40 +0000 (-0700) Subject: [dnd] Coverity Fixes X-Git-Tag: stable-12.2.0~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fa7eef2d27971753d9d6d1dd4fd5bd1a7a3dd17;p=thirdparty%2Fopen-vm-tools.git [dnd] Coverity Fixes dndCommon.c - truncating time value; false positive --- diff --git a/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c b/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c index 74592f2ef..2f7cd72ba 100644 --- a/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c +++ b/open-vm-tools/services/plugins/dndcp/dnd/dndCommon.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2005-2021 VMware, Inc. All rights reserved. + * Copyright (C) 2005-2022 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -133,6 +133,8 @@ DnD_CreateStagingDirectory(void) if (!found) { rqContext *context; + /* We're just using the time as a random seed, not as a timestamp. */ + /* coverity[store_truncates_time_t] */ context = Random_QuickSeed((unsigned)time(NULL)); for (i = 0; i < 10; i++) {