From d36a36c1c4a7bbeb050a55d05ca7a9409de584cc Mon Sep 17 00:00:00 2001 From: shadowlover_R <1264063387@qq.com> Date: Thu, 20 May 2021 11:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=86=85=E6=A0=B8=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E9=9B=86=E6=88=90=E6=B5=8B=E8=AF=95=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=B1=E8=B4=A5=E7=94=A8=E4=BE=8B=EF=BC=9Anet=5Fpos?= =?UTF-8?q?ix=EF=BC=9AActsNetTest.cpp#testDnCompExpandAbnormal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4de92483172cd06849a55231ace8f98bf0aafd1b --- kernel_lite/net_posix/src/ActsNetTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_lite/net_posix/src/ActsNetTest.cpp b/kernel_lite/net_posix/src/ActsNetTest.cpp index 6549d1c0f..ff763b44e 100755 --- a/kernel_lite/net_posix/src/ActsNetTest.cpp +++ b/kernel_lite/net_posix/src/ActsNetTest.cpp @@ -1345,10 +1345,10 @@ HWTEST_F(ActsNetTest, testDnCompExpandAbnormal, Function | MediumTest | Level3) printf("dn_expand ret=%d, expandDn is '%s'\n", ret, destExpand); // compress info is 0 - unsigned char destCompError[20]; + unsigned char destCompError[20] = {0}; eomorig = destCompError + 20; ret = dn_expand(destCompError, eomorig, destCompError, destExpand, MAXDNAME); - EXPECT_EQ(-1, ret); + EXPECT_EQ(1, ret); printf("dn_expand ret=%d, expandDn is '%s'\n", ret, destExpand); } -- GitLab