From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 66F2EAC0A25 for ; Wed, 27 Sep 2023 06:06:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=QLr23yiKeke87wobWITqg+MVbfbs7ekEOgr8Gjb9a+Y=; 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=1695794773; v=1; b=fYXN5LmfMmsB6rhYKJ7Bxwn2yRTk7l4+lIxH+jxvxt2EkzTwQLwdSmc3gctzNvs8GHGVOKzs mj63bHqxJ3YIa53NsDQUbQoCC0qiv5EdmLDIOHfBtY6Bdx75vbq2rZraDBg7us4d0pX32p3kj7s 5yYBkyD/W8kqSxAqs/ujUMZo= X-Received: by 127.0.0.2 with SMTP id 60JaYY7687511xaLTa5ljGGX; Tue, 26 Sep 2023 23:06:13 -0700 X-Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by mx.groups.io with SMTP id smtpd.web11.11801.1695794772448640883 for ; Tue, 26 Sep 2023 23:06:12 -0700 X-Received: by mail-io1-f43.google.com with SMTP id ca18e2360f4ac-79fa2dbd793so303654339f.2 for ; Tue, 26 Sep 2023 23:06:12 -0700 (PDT) X-Gm-Message-State: cQPtkfjeohOOsjr89sz3g3Dzx7686176AA= X-Google-Smtp-Source: AGHT+IFMP8OiD5PlF0ZCH3xA85czSBHbLRa1cB/5TsGIjQ1McKUomQTdbfclDMcxN5ApWzmuTrZ1vQ== X-Received: by 2002:a05:6e02:1bc5:b0:34c:bc10:2573 with SMTP id x5-20020a056e021bc500b0034cbc102573mr1500692ilv.3.1695794771552; Tue, 26 Sep 2023 23:06:11 -0700 (PDT) X-Received: from user-Latitude-5420.dc1.ventanamicro.com ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id gj8-20020a0566386a0800b0042b39b2289asm3856707jab.102.2023.09.26.23.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 23:06:11 -0700 (PDT) From: "Ranbir Singh" To: devel@edk2.groups.io, rsingh@ventanamicro.com Cc: Dandan Bi , Liming Gao , Veeresh Sangolli Subject: [edk2-devel] [PATCH v2 2/5] MdeModulePkg/Core/Dxe: Fix MISSING_BREAK Coverity issue Date: Wed, 27 Sep 2023 11:35:58 +0530 Message-Id: <20230927060601.443693-3-rsingh@ventanamicro.com> In-Reply-To: <20230927060601.443693-1-rsingh@ventanamicro.com> References: <20230927060601.443693-1-rsingh@ventanamicro.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,rsingh@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=fYXN5Lmf; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Ranbir Singh The function CoreIsSchedulable has switch-case code in which case EFI_DEP_BEFORE: case EFI_DEP_AFTER: has a comment that // For a well-formed Dependency Expression, the code should never get here. It also has an ASSERT (FALSE); but this is applicable only in DEBUG mode. Seemingly, for RELEASE mode, code should not be allowed to fall through to case EFI_DEP_SOR: which is below the above two. Hence, add return FALSE at the end. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4219 Cc: Dandan Bi Cc: Liming Gao Co-authored-by: Veeresh Sangolli Signed-off-by: Ranbir Singh Signed-off-by: Ranbir Singh --- MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c b/MdeModulePkg/C= ore/Dxe/Dispatcher/Dependency.c index acbf68b700fb..9799ec9ca097 100644 --- a/MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c +++ b/MdeModulePkg/Core/Dxe/Dispatcher/Dependency.c @@ -265,6 +265,8 @@ CoreIsSchedulable ( //=0D DEBUG ((DEBUG_DISPATCH, " RESULT =3D FALSE (Unexpected BEFORE or = AFTER opcode)\n"));=0D ASSERT (FALSE);=0D + return FALSE;=0D +=0D case EFI_DEP_SOR:=0D //=0D // These opcodes can only appear once as the first opcode. If it = is found=0D --=20 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109103): https://edk2.groups.io/g/devel/message/109103 Mute This Topic: https://groups.io/mt/101612677/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-