From nobody Mon Feb 9 19:05:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+109225+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109225+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1696024770; cv=none; d=zohomail.com; s=zohoarc; b=LAUIalcE2tJ01kZylIrLqEyJFNSSSL5Qgp9P0N3IrehER68dNKZcYubm5kh9GZ0/E328UK05xO000Szg1VCqe4/9SQZlFBmZxBhNWbCQ6ArJSxTOkcM863QU0d1xc9qk1P6ouMfbVON+ct1d3oSp2uIfWGMRu4HQlChKSMAicWE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1696024770; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=UADRklzqzqApPVOcYAEnVJiZKsoqAcD5+YKEasVIpCM=; b=B8dLbMzPDugJA5isAMQJRNNa/iU9qZOc2bD+WNm4rM1GTD5oncvomVIuMrrjbNWUZq2SQEveQecfTUxgoW+hq1KiQoNsYgpcfBLzHHE8+U2p4vFjpQJ/tet+lFCHyJUEJBEgZGphEHBf+m/u2aBiY7+qtr2jqzA4ZXfSSaeYQmM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+109225+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1696024770377919.9806085653712; Fri, 29 Sep 2023 14:59:30 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Cs3UQiT7asM6+XRTmDCuh9Nmsk2zWbyaZQtrFkoPOJU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696024770; v=1; b=RaQEyoJaJqHTE5eASFetM+IQJ+BpmEoqHvHnAR6OLW+VYsQUgdddKROLh1NGfY0SEKADoyRY fagtUfKEsxZ8+GPQVshvHCapmxYR23F5y42oDTpoajSy69JoB2wzep78FOn2J14FTnrEN+JUb0R lMa4DbzhTSgEtr3irY08DFuU= X-Received: by 127.0.0.2 with SMTP id 2iutYY1788612x19H0KSit4R; Fri, 29 Sep 2023 14:59:30 -0700 X-Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by mx.groups.io with SMTP id smtpd.web10.30362.1696024769281613038 for ; Fri, 29 Sep 2023 14:59:29 -0700 X-Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2c131ddfc95so225981431fa.0 for ; Fri, 29 Sep 2023 14:59:29 -0700 (PDT) X-Gm-Message-State: Kp0WNDxDwR4Li34geOnBPw05x1787277AA= X-Google-Smtp-Source: AGHT+IErILYGhDw2UJziiR968sM5sdSC57ugFn/DzWHgrx/gD1VpPrXUPEJaGCuhR4l7z+QXPoGVdg== X-Received: by 2002:a2e:9214:0:b0:2bc:b88c:64ed with SMTP id k20-20020a2e9214000000b002bcb88c64edmr4982410ljg.12.1696024767422; Fri, 29 Sep 2023 14:59:27 -0700 (PDT) X-Received: from localhost.localdomain ([185.9.78.108]) by smtp.gmail.com with ESMTPSA id y24-20020a2ebb98000000b002bfe8537f37sm890178lje.33.2023.09.29.14.59.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 29 Sep 2023 14:59:27 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH 9/9] RedfishClientPkg: fix StrnCpyS arguments Date: Sat, 30 Sep 2023 00:59:15 +0300 Message-Id: <20230929215915.46616-10-mike.maslenkin@gmail.com> In-Reply-To: <20230929215915.46616-1-mike.maslenkin@gmail.com> References: <20230929215915.46616-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1696024771321100039 Content-Type: text/plain; charset="utf-8" StrnCpyS accepts string length in characters, not in bytes. Signed-off-by: Mike Maslenkin --- RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c= b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c index 8ac165dec59e..c19d4a46d6af 100644 --- a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c +++ b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c @@ -331,7 +331,7 @@ NewInternalInstance ( } =20 NewInternalData->NodeName =3D AllocateZeroPool (StrSize (NodeName)); - StrnCpyS (NewInternalData->NodeName, StrSize (NodeName), (CONST CHAR16 *= )NodeName, StrLen (NodeName)); + StrnCpyS (NewInternalData->NodeName, StrLen (NodeName) + 1, (CONST CHAR1= 6 *)NodeName, StrLen (NodeName)); NewInternalData->SiblingList =3D NULL; NewInternalData->ChildList =3D NULL; if (NodeIsCollection) { --=20 2.32.0 (Apple Git-132) -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109225): https://edk2.groups.io/g/devel/message/109225 Mute This Topic: https://groups.io/mt/101667469/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-