Skip to content

[CHERRY-PICK] StandaloneMmPkg/Core: Return when processing malformed DEPEX - #1895

Merged
Michael Kubacki (makubacki) merged 1 commit into
microsoft:release/202511from
Gowtham-Manikandan:CAT_Change_2
Sep 1, 2026
Merged

[CHERRY-PICK] StandaloneMmPkg/Core: Return when processing malformed DEPEX#1895
Michael Kubacki (makubacki) merged 1 commit into
microsoft:release/202511from
Gowtham-Manikandan:CAT_Change_2

Conversation

@Gowtham-Manikandan

Copy link
Copy Markdown
Contributor

Description

For a well-formed Dependency Expression, the code should never get here. The BEFORE and AFTER are processed prior to this routine's invocation. If the code flow arrives at this point, present code only called ASSERT(FALSE),
causing release builds to fall through to the EFI_DEP_SOR case.

Adding an explicit return FALSE after the assertion ensures correct error handling in release and debug build modes.

This commit also addresses the fix for Coverity
issue "MISSING BREAK"

Cc: Sachin Ganesh sachinganesh@ami.com

(cherry picked from commit 7e0b85e)

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Integration Instructions

<Describe how these changes should be integrated. Use N/A if nothing is required.>

@mu-automation

mu-automation Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

⏩ QEMU Validation Skipped

The PR was merged before validation completed.

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@codecov-commenter

Codecov Comments Bot (codecov-commenter) commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/202511@04afff1). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             release/202511   #1895   +/-   ##
================================================
  Coverage                  ?   0.50%           
================================================
  Files                     ?      30           
  Lines                     ?    5582           
  Branches                  ?      31           
================================================
  Hits                      ?      28           
  Misses                    ?    5554           
  Partials                  ?       0           
Flag Coverage Δ
StandaloneMmPkg 0.50% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…DEPEX

For a well-formed Dependency Expression, the code should
never get here. The BEFORE and AFTER are processed prior to
this routine's invocation. If the code flow arrives at this point,
present code only called ASSERT(FALSE),
causing release builds to fall through to the EFI_DEP_SOR case.

Adding an explicit return FALSE after the assertion ensures
correct error handling in release and debug build modes.

This commit also addresses the fix for Coverity
issue "MISSING BREAK"

Cc: Sachin Ganesh <sachinganesh@ami.com>
Signed-off-by: Gowtham M <gowthamm@ami.com>
(cherry picked from commit 7e0b85e)
@makubacki
Michael Kubacki (makubacki) merged commit 12f8ff0 into microsoft:release/202511 Sep 1, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants