Address uses of the term "sanity check" in some files used by open-vm-tools.
/*********************************************************
- * Copyright (C) 2012-2017,2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2012-2017,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
ASSERT(0); /* we do not expect this to happen */
}
- /* Update left buffer size so we can do a sanity check at the end */
+ /* Update left buffer size so we can do a confidence check at the end. */
clientData->buffLen -= (clientData->buffer - buffPtrOrig);
}
HashMap_Iterate(that->map, HashMapSerializeEntryCb, FALSE, &clientData);
- /* sanity check, make sure the buffer size is just used up*/
+ /* confidence check, make sure the buffer size is just used up. */
ASSERT(clientData.buffLen == 0);
if (clientData.result != DMERR_SUCCESS) {
ToBufferString(&clientData, "--> End.\n");
- /* sanity check, make sure the buffer is not overflown. */
+ /* confidence check, make sure the buffer is not overflown. */
ASSERT(clientData.buffLen >= 0);
ASSERT(buffPtr + maxBuffSize >= clientData.buffer);
if (fsAttrs->versionNumber == 3) {
maxFileSize = (VMFS3CONST * (uint64) fsAttrs->fileBlockSize * 1024);
} else if (fsAttrs->versionNumber >= 5) {
- /* Get ready for 64 TB on VMFS5 and perform sanity check on version */
+ /* Get ready for 64 TB on VMFS5 and perform confidence check on version */
maxFileSize = (uint64) 0x400000000000ULL;
} else {
Log(LGPFX" %s: Unsupported filesystem version, %u\n", __func__,
/*********************************************************
- * Copyright (C) 2004-2016, 2019, 2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2016, 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
}
/*
- * Sanity check the header.
+ * Confidence check the header.
* Some basic rules: All the length values in the VixMsgHeader
* struct are uint32. The headerLength must be large enough to
* accomodate the base header: VixMsgHeader. The bodyLength and
}
/*
- * Sanity check the parts of the header that are specific to requests.
+ * Confidence check the parts of the header that are specific to requests.
*/
message = vMsg;
if (message->commonHeader.headerLength < sizeof(VixCommandRequestHeader)) {
}
/*
- * Sanity check the parts of the header that are specific to responses.
+ * Confidence check the parts of the header that are specific to responses.
*/
message = vMsg;
if (message->commonHeader.headerLength < sizeof(VixCommandResponseHeader)) {
/*********************************************************
- * Copyright (C) 1998-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-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
Wiper_Init(NULL);
/*
- * Sanity checks. If length is good, assume well-formed drive path
+ * Confidence checks. If length is good, assume well-formed drive path
* (i.e. "C:\..." or "\\abc..."). Note that we throw out shares that
* exactly equal p.mountPoint's size because we won't have room for a null
* delimiter on copy. Allow 0 length drives so that hidden feature "" can
*
* HgfsServerValidateOpenParameters --
*
- * Performs sanity check of the input parameters.
+ * Performs confidence check of the input parameters.
*
* Results:
* HGFS_ERROR_SUCCESS if the parameters are valid.
/*********************************************************
- * Copyright (C) 2003-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2003-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
/*
* These give upper bounds for how big any VIX IPC meesage
- * should be. There are for sanity checks and to ignore maliciously
+ * should be. There are for confidence checks and to ignore maliciously
* large messages that may be part of an DoS attack. The may need to
* be revised if large messages are added to the protocol.
*/
/*********************************************************
- * Copyright (C) 1998-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-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
*
* Util_Init --
*
- * Opportunity to sanity check things
+ * Opportunity to confidence check things
*
* Results:
* Bool - TRUE (this should never fail)
{
#ifdef VMX86_DEVEL
/*
- * Sanity check Str_Snprintf so that we're never thrown off guard
+ * Confidence check Str_Snprintf so that we're never thrown off guard
* by a change in the underlying libraries that Str_Snprintf doesn't
* catch and wrap properly.
*/
*
* VMBlockCheckVp --
*
- * Sanity-checking intermediary used for debugging. When module is
+ * Confidence-checking intermediary used for debugging. When module is
* compiled with FreeBSD macro "DIAGNOSTIC", every instance of
* VMBVPTOLOWERVP() calls this function to test vnodes' and VMBlockNodes'
* values, printing diagnostic information before panicing. If the kernel
/*********************************************************
- * Copyright (C) 2007-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-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
DnDReadBuffer(&r, &msg->cmd, sizeof msg->cmd) &&
DnDReadBuffer(&r, &msg->nargs, sizeof msg->nargs) &&
DnDReadBuffer(&r, &msg->expectedArgsSz, sizeof msg->expectedArgsSz)) {
- /* Sanity checks. */
+ /* Confidence checks. */
if (msg->expectedArgsSz < DNDMSG_MAX_ARGSZ &&
(msg->cmd < DND_MAX || msg->cmd < CP_MAX) &&
0 < msg->cmd &&
/*********************************************************
- * Copyright (C) 2007-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2007-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
DNDMSG_ERR,
DNDMSG_NOMEM,
DNDMSG_INPUT_TOO_SMALL, /* Input buffer needs to be bigger. */
- DNDMSG_INPUT_ERR, /* Serialize/unserialized failed sanity checks. */
+ DNDMSG_INPUT_ERR, /* Serialize/unserialized failed confidence checks. */
} DnDMsgErr;
/*