From: Katy Feng Date: Fri, 3 Feb 2023 17:41:08 +0000 (-0800) Subject: Inclusive terminology - "sanity check" X-Git-Tag: stable-12.3.0~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82379efe344790ee4ab58927a194a55d6931bc3d;p=thirdparty%2Fopen-vm-tools.git Inclusive terminology - "sanity check" "sanity check" clean-up: - Rename functions: - ./scripts/linux/network -> Renamed "sanity_check" to "confidence_check". - ./vgauth/lib/proto.c -> Renamed "Proto_SanityCheckReply" to "Proto_ConfidenceCheckReply". - Replace "sanity check" with "confidence check" in comments. --- diff --git a/open-vm-tools/lib/slashProc/net.c b/open-vm-tools/lib/slashProc/net.c index 7e0063430..b72c8f699 100644 --- a/open-vm-tools/lib/slashProc/net.c +++ b/open-vm-tools/lib/slashProc/net.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2009-2018 VMware, Inc. All rights reserved. + * Copyright (C) 2009-2018, 2023 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 @@ -566,7 +566,7 @@ SlashProcNet_GetRoute(unsigned int maxRoutes, myChannel = g_io_channel_unix_new(fd); /* - * 2. Sanity check the header, making sure it matches what we expect. + * 2. Confidence check the header, making sure it matches what we expect. * (It's -extremely- unlikely this will change, but we should check * anyway.) */ diff --git a/open-vm-tools/libguestlib/vmGuestLib.c b/open-vm-tools/libguestlib/vmGuestLib.c index 5e77b4b84..6cd02436b 100644 --- a/open-vm-tools/libguestlib/vmGuestLib.c +++ b/open-vm-tools/libguestlib/vmGuestLib.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2005-2016,2019-2020 VMware, Inc. All rights reserved. + * Copyright (C) 2005-2016,2019-2020, 2023 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 @@ -446,7 +446,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN goto done; } - /* Sanity check the results. */ + /* Confidence check the results. */ if (replyLen < sizeof hostVersion) { Debug("%s: Unable to retrieve version\n", __FUNCTION__); ret = VMGUESTLIB_ERROR_OTHER; @@ -457,7 +457,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN VMGuestLibDataV2 *v2reply = (VMGuestLibDataV2 *)reply; size_t dataSize = sizeof *v2reply; - /* More sanity checks. */ + /* More confidence checks. */ if (v2reply->hdr.version != hostVersion) { Debug("%s: Incorrect data version returned\n", __FUNCTION__); ret = VMGUESTLIB_ERROR_OTHER; @@ -491,7 +491,7 @@ VMGuestLibUpdateInfo(VMGuestLibHandle handle) // IN GuestLibV3StatCount count; VMGuestLibStatisticsV3 *v3stats; - /* More sanity checks. */ + /* More confidence checks. */ if (v3reply->hdr.version != hostVersion) { Debug("%s: Incorrect data version returned\n", __FUNCTION__); ret = VMGUESTLIB_ERROR_OTHER; diff --git a/open-vm-tools/modules/shared/vmmemctl/kernelStubs.h b/open-vm-tools/modules/shared/vmmemctl/kernelStubs.h index 5a9ac5b7d..429a5cdbc 100644 --- a/open-vm-tools/modules/shared/vmmemctl/kernelStubs.h +++ b/open-vm-tools/modules/shared/vmmemctl/kernelStubs.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved. + * Copyright (C) 2006-2019,2021, 2023 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 @@ -227,7 +227,7 @@ char * __cdecl _strdup_impl( #elif defined(__FreeBSD__) /* } else if (FreeBSD) { */ -/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */ +/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */ MALLOC_DECLARE(M_VMWARE_TEMP); /* diff --git a/open-vm-tools/modules/solaris/vmhgfs/hgfsState.h b/open-vm-tools/modules/solaris/vmhgfs/hgfsState.h index a739fdfd6..fc0612230 100644 --- a/open-vm-tools/modules/solaris/vmhgfs/hgfsState.h +++ b/open-vm-tools/modules/solaris/vmhgfs/hgfsState.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2004-2016, 2021 VMware, Inc. All rights reserved. + * Copyright (C) 2004-2016, 2021, 2023 VMware, Inc. All rights reserved. * * The contents of this file are subject to the terms of the Common * Development and Distribution License (the "License") version 1.0 @@ -65,7 +65,7 @@ HGFS_VP_TO_FP(vp)->fileType /* - * This macro is used for sanity checking the fact that Solaris won't ever call + * This macro is used for confidence checking the fact that Solaris won't ever call * one of our vnode operations without first calling lookup(), which is the * place where we acquire the filename. I have never seen a function fail * because of this, so it is likely that we can remove this macro and the checks diff --git a/open-vm-tools/modules/solaris/vmhgfs/kernelStubs.h b/open-vm-tools/modules/solaris/vmhgfs/kernelStubs.h index cfcf0cee8..5f677a8ae 100644 --- a/open-vm-tools/modules/solaris/vmhgfs/kernelStubs.h +++ b/open-vm-tools/modules/solaris/vmhgfs/kernelStubs.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved. + * Copyright (C) 2006-2019,2021, 2023 VMware, Inc. All rights reserved. * * The contents of this file are subject to the terms of the Common * Development and Distribution License (the "License") version 1.0 @@ -186,7 +186,7 @@ char * __cdecl _strdup_impl( #elif defined(__FreeBSD__) /* } else if (FreeBSD) { */ -/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */ +/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */ MALLOC_DECLARE(M_VMWARE_TEMP); /* diff --git a/open-vm-tools/modules/solaris/vmhgfs/vnode.c b/open-vm-tools/modules/solaris/vmhgfs/vnode.c index 6145a91af..bcbdebcff 100644 --- a/open-vm-tools/modules/solaris/vmhgfs/vnode.c +++ b/open-vm-tools/modules/solaris/vmhgfs/vnode.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2004-2016 VMware, Inc. All rights reserved. + * Copyright (C) 2004-2016, 2023 VMware, Inc. All rights reserved. * * The contents of this file are subject to the terms of the Common * Development and Distribution License (the "License") version 1.0 @@ -2162,7 +2162,7 @@ HgfsReaddir(struct vnode *vp, // IN: Vnode of directory to read /* - * XXX: If would be nice if we could perform some sort of sanity check on + * XXX: If would be nice if we could perform some sort of confidence check on * the handle here. Perhaps make sure handle <= NUM_SEARCHES in * hgfsServer.c since the handle is the index number in searchArray. */ @@ -5571,7 +5571,7 @@ HgfsReaddir(struct vnode *vp, // IN: Vnode of directory to read /* - * XXX: If would be nice if we could perform some sort of sanity check on + * XXX: If would be nice if we could perform some sort of confidence check on * the handle here. Perhaps make sure handle <= NUM_SEARCHES in * hgfsServer.c since the handle is the index number in searchArray. */ diff --git a/open-vm-tools/scripts/common/statechange.sh b/open-vm-tools/scripts/common/statechange.sh index 39df65796..332015186 100644 --- a/open-vm-tools/scripts/common/statechange.sh +++ b/open-vm-tools/scripts/common/statechange.sh @@ -1,6 +1,6 @@ #!/bin/sh ########################################################## -# Copyright (C) 2010-2016 VMware, Inc. All rights reserved. +# Copyright (C) 2010-2016, 2023 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 @@ -107,7 +107,7 @@ RunScripts() { # main() { - # This is sanity checked in the case/esac bit below. + # This is confidence checked in the case/esac bit below. powerOp=`basename "$0" | sed 's,-default,,'` exitCode=0 diff --git a/open-vm-tools/scripts/freebsd/network b/open-vm-tools/scripts/freebsd/network index 0c7052617..8e728ad22 100644 --- a/open-vm-tools/scripts/freebsd/network +++ b/open-vm-tools/scripts/freebsd/network @@ -1,6 +1,6 @@ #!/bin/sh ########################################################## -# Copyright (C) 2010-2017 VMware, Inc. All rights reserved. +# Copyright (C) 2010-2017, 2023 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 @@ -74,7 +74,7 @@ ToggleNetwork() { # # main -- # -# Main entry point. Perform some sanity checking, then map state change +# Main entry point. Perform some confidence checking, then map state change # events to relevant networking operations. # # Results: diff --git a/open-vm-tools/scripts/linux/network b/open-vm-tools/scripts/linux/network index db37304df..e866f5200 100644 --- a/open-vm-tools/scripts/linux/network +++ b/open-vm-tools/scripts/linux/network @@ -1,6 +1,6 @@ #!/bin/sh -x ########################################################## -# Copyright (C) 2001-2018, 2021 VMware, Inc. All rights reserved. +# Copyright (C) 2001-2018, 2021, 2023 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 @@ -608,7 +608,7 @@ WakeNetworkManager() # -# sanity_check -- +# confidence_check -- # # Check if the script has all the commands it needs to carry out the # request. So far, it requires either ip or ifconfig command to read @@ -616,7 +616,7 @@ WakeNetworkManager() # the place where we need to do individual interface state change. # -sanity_check() +confidence_check() { ip_cmd=$(which ip 2>/dev/null) ifconfig_cmd=$(which ifconfig 2>/dev/null) @@ -631,7 +631,7 @@ sanity_check() # # main -- # -# Main entry point. Perform some sanity checking, then map state change +# Main entry point. Perform some confidence checking, then map state change # events to relevant networking operations. # # Results: @@ -650,7 +650,7 @@ main() { TranquilizeNetworkManager exitCode=$? if [ $exitCode != 0 ]; then - sanity_check suspend-vm + confidence_check suspend-vm save_active_NIC_list run_network_script stop exitCode=$? @@ -660,7 +660,7 @@ main() { WakeNetworkManager exitCode=$? if [ $exitCode != 0 ]; then - sanity_check resume-vm + confidence_check resume-vm # According to hfu, "/etc/init.d/networking restart" on Debian 5.0 # may bring down ethernet interfaces tagged as "allow-hotplug" without # bringing them back up. diff --git a/open-vm-tools/toolbox/toolboxcmd-logging.c b/open-vm-tools/toolbox/toolboxcmd-logging.c index 1c23bb7b0..d83c3cd65 100644 --- a/open-vm-tools/toolbox/toolboxcmd-logging.c +++ b/open-vm-tools/toolbox/toolboxcmd-logging.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2015-2016,2020-2021 VMware, Inc. All rights reserved. + * Copyright (C) 2015-2016,2020-2021, 2023 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 @@ -22,11 +22,11 @@ * Various logging operations for toolbox-cmd. * * Note: - * Servicenames are not sanity checked. This means it can report + * Servicenames are not confidence checked. This means it can report * the default value for a bogus servicename, or setting values for - * an unsupported servicename. But any sanity checking would require + * an unsupported servicename. But any confidence checking would require * all possible servicenames to #define themselves. Lack of - * a sanity check overrrides this complexity. + * a confidence check overrrides this complexity. * * TODO: This currently just modifies the tools.conf file, which means * that if tools is running, it can talke up to 5 seconds to react @@ -49,7 +49,7 @@ * * LoggingCheckLevel -- * - * Sanity check logging level. + * Confidence check logging level. * * Results: * Returns TRUE if its a valid logging level, FALSE if not. diff --git a/open-vm-tools/vgauth/lib/alias.c b/open-vm-tools/vgauth/lib/alias.c index c4860b244..657b7f1b5 100644 --- a/open-vm-tools/vgauth/lib/alias.c +++ b/open-vm-tools/vgauth/lib/alias.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2016, 2023 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 @@ -220,7 +220,7 @@ VGAuth_FreeMappedAliasList(int num, ****************************************************************************** * VGAuthValidateSubject -- */ /** * - * @brief Does a sanity check on a Subject paramter. + * @brief Does a confidence check on a Subject parameter. * * @remark Can be called by any user. * diff --git a/open-vm-tools/vgauth/lib/common.c b/open-vm-tools/vgauth/lib/common.c index 181b972b6..1e26fea2a 100644 --- a/open-vm-tools/vgauth/lib/common.c +++ b/open-vm-tools/vgauth/lib/common.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2017 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2017, 2023 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 @@ -553,7 +553,7 @@ done: * @li VGAuth debug messages will use the glib loglevel @b G_LOG_LEVEL_DEBUG. * * Note that any bad utf8 string arguments will be passed through - * unmodified, so an error handler may want to sanity check the data. + * unmodified, so an error handler may want to confidence check the data. * * @remark Can be called by any user. * diff --git a/open-vm-tools/vgauth/lib/proto.c b/open-vm-tools/vgauth/lib/proto.c index 6f23042a8..91fc4bb78 100644 --- a/open-vm-tools/vgauth/lib/proto.c +++ b/open-vm-tools/vgauth/lib/proto.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2012-2017, 2019-2021 VMware, Inc. All rights reserved. + * Copyright (C) 2012-2017, 2019-2021, 2023 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 @@ -108,7 +108,7 @@ struct ProtoReply { /* * The client knows what its expecting back, which is - * used as a sanity check against what's actually read, + * used as a confidence check against what's actually read, * as well as telling us what to allocate for complex replies. */ ProtoReplyType expectedReplyType; @@ -1141,7 +1141,7 @@ Proto_FreeReply(ProtoReply *reply) /* ****************************************************************************** - * Proto_SanityCheckReply -- */ /** + * Proto_ConfidenceCheckReply -- */ /** * * Verifies a reply is internally consistent and the type is what we expected. * @@ -1155,7 +1155,7 @@ Proto_FreeReply(ProtoReply *reply) */ static VGAuthError -Proto_SanityCheckReply(ProtoReply *reply, +Proto_ConfidenceCheckReply(ProtoReply *reply, int expectedSequenceNumber) { #if VGAUTH_PROTO_TRACE @@ -1274,10 +1274,10 @@ VGAuth_ReadAndParseResponse(VGAuthContext *ctx, Proto_DumpReply(reply); #endif - err = Proto_SanityCheckReply(reply, ctx->comm.sequenceNumber); + err = Proto_ConfidenceCheckReply(reply, ctx->comm.sequenceNumber); if (VGAUTH_E_OK != err) { - Warning("%s: reply sanity check failed\n", __FUNCTION__); + Warning("%s: reply confidence check failed\n", __FUNCTION__); goto quit; } diff --git a/open-vm-tools/vgauth/serviceImpl/alias.c b/open-vm-tools/vgauth/serviceImpl/alias.c index b28351eea..95ba1ce87 100644 --- a/open-vm-tools/vgauth/serviceImpl/alias.c +++ b/open-vm-tools/vgauth/serviceImpl/alias.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2021 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2021, 2023 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 @@ -420,7 +420,7 @@ ServiceUserNameToTmpAliasStoreFileName(const gchar *userName) * ServiceLoadAliasFileContents -- */ /** * * Securely loads an alias or mapping file, preventing TOCTOU (Time of Check, - * Time of Use) bugs. This also provides a size sanity check, preventing + * Time of Use) bugs. This also provides a size confidence check, preventing * a DoS attack. * * Steps: @@ -518,7 +518,7 @@ ServiceLoadFileContentsWin(const gchar *fileName, goto done; } - // sanity check size + // confidence check size if ((fileAttrs.nFileSizeHigh != 0) || (fileAttrs.nFileSizeLow > ALIASSTORE_FILE_MAX_SIZE)) { Warning("%s: size of %s too large %d %d; failing read\n", __FUNCTION__, @@ -781,7 +781,7 @@ ServiceLoadFileContentsPosix(const gchar *fileName, } /* - * Now the sanity checks. + * Now the confidence checks. */ if (lstatBuf.st_size != fstatBuf.st_size) { Warning("%s: size of %s changed (%d vs %d)\n", __FUNCTION__, @@ -818,7 +818,7 @@ ServiceLoadFileContentsPosix(const gchar *fileName, } /* - * All sanity checks passed; read the bits. + * All confidence checks passed; read the bits. */ toRead = lstatBuf.st_size; buf = g_malloc0(toRead + 1); @@ -1879,7 +1879,7 @@ AliasSafeRenameFiles(const gchar *srcAliasFilename, /* - * Do some sanity checks on the files. + * Do some confidence checks on the files. */ if (NULL != srcAliasFilename) { if (g_file_test(aliasFilename, G_FILE_TEST_EXISTS) && @@ -3086,7 +3086,7 @@ ServiceAliasQueryMappedAliases(int *num, * * If we fail to rename a bad file, the function returns an error. * - * XXX add contents/XML sanity check too? + * XXX add contents/XML confidence check too? * * @return VGAUTH_E_OK on success, VGAuthError on failure * @@ -3396,7 +3396,7 @@ ServiceAliasInitAliasStore(void) } /* - * Sanity check the alias store. + * Confidence check the alias store. */ err = ServiceValidateAliases(); } diff --git a/open-vm-tools/vgauth/serviceImpl/filePosix.c b/open-vm-tools/vgauth/serviceImpl/filePosix.c index 8464154b8..69fc47d72 100644 --- a/open-vm-tools/vgauth/serviceImpl/filePosix.c +++ b/open-vm-tools/vgauth/serviceImpl/filePosix.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2016, 2023 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 @@ -293,7 +293,7 @@ ServiceFileGetPermissions(const gchar *fileName, * be looked up, assume the user has been removed or we have a network * user issue, and ignore the ownership check. * - * Returns the uids found for subsequent sanity checks. + * Returns the uids found for subsequent confidence checks. * * @param[in] fileName The file name. * @param[in] userName The expected owner. diff --git a/open-vm-tools/vgauth/serviceImpl/proto.c b/open-vm-tools/vgauth/serviceImpl/proto.c index 6c6726015..502aea621 100644 --- a/open-vm-tools/vgauth/serviceImpl/proto.c +++ b/open-vm-tools/vgauth/serviceImpl/proto.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2016,2019-2023 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 @@ -1044,7 +1044,7 @@ Proto_FreeRequest(ProtoRequest *req) /* ****************************************************************************** - * Proto_SanityCheckRequest - */ /** + * Proto_ConfidenceCheckRequest - */ /** * * Verifies a request is internally consistent and the type is what we expected. * @@ -1056,7 +1056,7 @@ Proto_FreeRequest(ProtoRequest *req) */ static VGAuthError -Proto_SanityCheckRequest(ProtoRequest *request) +Proto_ConfidenceCheckRequest(ProtoRequest *request) { /* * There's not much else to do here for now. The parser does @@ -1149,12 +1149,12 @@ ServiceProtoReadAndProcessRequest(ServiceConnection *conn) */ if (req->complete) { Proto_DumpRequest(req); - err = Proto_SanityCheckRequest(req); + err = Proto_ConfidenceCheckRequest(req); if (err != VGAUTH_E_OK) { - Warning("%s: request sanity check failed\n", __FUNCTION__); + Warning("%s: request confidence check failed\n", __FUNCTION__); } - // only try to handle it if the sanity check passed + // only try to handle it if the confidence check passed if (err == VGAUTH_E_OK) { err = ServiceProtoDispatchRequest(conn, req); } diff --git a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c index f5541a9a7..6e9d0fd24 100644 --- a/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c +++ b/open-vm-tools/vgauth/serviceImpl/saml-xmlsec1.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2016-2022 VMware, Inc. All rights reserved. + * Copyright (C) 2016-2023 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 @@ -266,7 +266,7 @@ LoadCatalogAndSchema(void) * xmlLoadCatalog() just adds to the default catalog, and won't return an * error if it doesn't exist so long as a default catalog is set. * - * So sanity check its existence. + * So confidence check its existence. */ if (!g_file_test(catalogPath, G_FILE_TEST_EXISTS)) { g_warning("Error: catalog file not found at \"%s\"\n", catalogPath); diff --git a/open-vm-tools/vmblockmounter/vmblockmounter.c b/open-vm-tools/vmblockmounter/vmblockmounter.c index 2735fd334..6100ecc82 100644 --- a/open-vm-tools/vmblockmounter/vmblockmounter.c +++ b/open-vm-tools/vmblockmounter/vmblockmounter.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2011-2016, 2021 VMware, Inc. All rights reserved. + * Copyright (C) 2011-2016, 2021, 2023 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 @@ -186,7 +186,7 @@ main(int argc, // IN sourceDir = argv[optind]; mountPoint = argv[optind + 1]; - /* Do some sanity checks on our desired mount point. */ + /* Do some confidence checks on our desired mount point. */ if (stat(mountPoint, &statBuf)) { perror("Error: cannot stat mount point"); goto out; diff --git a/open-vm-tools/vmhgfs-fuse/file.c b/open-vm-tools/vmhgfs-fuse/file.c index e56d621db..e59c78e77 100644 --- a/open-vm-tools/vmhgfs-fuse/file.c +++ b/open-vm-tools/vmhgfs-fuse/file.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2013,2018-2019 VMware, Inc. All rights reserved. + * Copyright (C) 2013,2018-2019, 2023 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 @@ -612,7 +612,7 @@ HgfsDoRead(HgfsHandle handle, // IN: Handle for this file payload = ((HgfsReplyRead *)HGFS_REQ_PAYLOAD(req))->payload; } - /* Sanity check on read size. */ + /* Confidence check on read size. */ if (actualSize > count) { LOG(4, ("Server reply: read too big!\n")); result = -EPROTO; diff --git a/open-vm-tools/vmhgfs-fuse/request.c b/open-vm-tools/vmhgfs-fuse/request.c index bba1f444f..0b9f2554f 100644 --- a/open-vm-tools/vmhgfs-fuse/request.c +++ b/open-vm-tools/vmhgfs-fuse/request.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2013,2019 VMware, Inc. All rights reserved. + * Copyright (C) 2013,2019, 2023 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 @@ -164,7 +164,7 @@ HgfsUnpackHeader(void *serverReply, // IN: server reply { HgfsHeader *header = (HgfsHeader *)serverReply; - /* First some sanity checking. */ + /* First some confidence checking. */ if ((replySize < sizeof (HgfsHeader)) || (header->dummy != HGFS_OP_NEW_HEADER) || (header->packetSize > replySize) ||