From: Kruti Pendharkar Date: Tue, 18 Feb 2025 09:13:56 +0000 (-0800) Subject: Change to common source file not applicable to open-vm-tools. X-Git-Tag: stable-13.1.0~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c7626bb77e8a2153265b125cc359118ce3ae19b;p=thirdparty%2Fopen-vm-tools.git Change to common source file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/misc/iovector.c b/open-vm-tools/lib/misc/iovector.c index a731bb84a..5f5ce302e 100644 --- a/open-vm-tools/lib/misc/iovector.c +++ b/open-vm-tools/lib/misc/iovector.c @@ -1,5 +1,6 @@ /********************************************************* - * Copyright (C) 1998-2016 VMware, Inc. All rights reserved. + * Copyright (c) 1998-2016,2024 Broadcom. All Rights Reserved. + * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * 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 @@ -311,11 +312,11 @@ IOVSplitList(VMIOVec *regionV, // IN/OUT: VMIOVec for this region if (regionV->numBytes > regionV->numSectors * sectorSize) { int spillover; - + spillover = (int) (regionV->numBytes - regionV->numSectors * sectorSize); - ASSERT(spillover < curEntry->iov_len); - ASSERT(spillover > 0); + VERIFY(spillover < curEntry->iov_len); + VERIFY(spillover > 0); /* * Truncate the last overlapping entry and store the excess. After