microsoft / mu_basecore

Project Mu BaseCore
https://microsoft.github.io/mu/
Other
242 stars 124 forks source link

[CHERRY-PICK][REBASE&FF] MdeModulePkg/SMM: Initialize 'WillReturn' variable #1153

Closed Javagedes closed 3 weeks ago

Javagedes commented 3 weeks ago

Description

The local variable 'WillReturn' was being used without prior initialization in some code paths. This patch ensures that 'WillReturn' is properly initialized to prevent undefined behavior.

Cherry-pick from EDKII https://github.com/tianocore/edk2/commit/30b6d08e27c767ba9756a244099d73c826abcc8d

How This Was Tested

Cherry-pick from EDKII https://github.com/tianocore/edk2/commit/30b6d08e27c767ba9756a244099d73c826abcc8d

Integration Instructions

Cherry-pick from EDKII https://github.com/tianocore/edk2/commit/30b6d08e27c767ba9756a244099d73c826abcc8d

codecov-commenter commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 1.42%. Comparing base (7e30a97) to head (ba1383b).

Files with missing lines Patch % Lines
MdeModulePkg/Core/PiSmmCore/Smi.c 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev/202405 #1153 +/- ## ============================================== - Coverage 1.59% 1.42% -0.17% ============================================== Files 1448 1448 Lines 362490 361977 -513 Branches 5632 5632 ============================================== - Hits 5776 5171 -605 + Misses 356607 356324 -283 - Partials 107 482 +375 ``` | [Flag](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1153/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | Coverage Δ | | |---|---|---| | [MdeModulePkg](https://app.codecov.io/gh/microsoft/mu_basecore/pull/1153/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft) | `0.40% <0.00%> (-0.28%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=microsoft#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.