-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdvLoggerPkg: Switch to using AsciiStrnLenS #293
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfernald
approved these changes
Aug 23, 2023
makubacki
reviewed
Aug 23, 2023
os-d
reviewed
Aug 23, 2023
os-d
approved these changes
Aug 23, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With Michael's comment, LGTM.
makubacki
approved these changes
Aug 23, 2023
4eae31d
to
5ddd99d
Compare
ProjectMuBot
referenced
this pull request
in microsoft/mu_tiano_platforms
Aug 24, 2023
Introduces 3 new commits in [Common/MU](https://github.com/microsoft/mu_plus.git). <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/mu_plus/commit/26580b3cac7a2e7e33d299d836a52034d5d52c67">26580b</a> pip: bump edk2-pytool-library from 0.16.1 to 0.17.0 (<a href="https://github.com/microsoft/mu_plus/pull/288">#288</a>)</li> <li><a href="https://github.com/microsoft/mu_plus/commit/c0d44c4584d2d95bfd309a60c076a28bbe3c23ce">c0d44c</a> Update UXN/PXN Parsing and Fix Filters in Paging Audit (<a href="https://github.com/microsoft/mu_plus/pull/290">#290</a>)</li> <li><a href="https://github.com/microsoft/mu_plus/commit/23043756b9d76f0c6fe7bdd8231727c3690d1e16">230437</a> AdvLoggerPkg: Switch to using AsciiStrnLenS (<a href="https://github.com/microsoft/mu_plus/pull/293">#293</a>)</li> </ul> </details> Signed-off-by: Project Mu Bot <[email protected]>
makubacki
referenced
this pull request
in microsoft/mu_tiano_platforms
Aug 24, 2023
Introduces 3 new commits in [Common/MU](https://github.com/microsoft/mu_plus.git). <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/microsoft/mu_plus/commit/26580b3cac7a2e7e33d299d836a52034d5d52c67">26580b</a> pip: bump edk2-pytool-library from 0.16.1 to 0.17.0 (<a href="https://github.com/microsoft/mu_plus/pull/288">#288</a>)</li> <li><a href="https://github.com/microsoft/mu_plus/commit/c0d44c4584d2d95bfd309a60c076a28bbe3c23ce">c0d44c</a> Update UXN/PXN Parsing and Fix Filters in Paging Audit (<a href="https://github.com/microsoft/mu_plus/pull/290">#290</a>)</li> <li><a href="https://github.com/microsoft/mu_plus/commit/23043756b9d76f0c6fe7bdd8231727c3690d1e16">230437</a> AdvLoggerPkg: Switch to using AsciiStrnLenS (<a href="https://github.com/microsoft/mu_plus/pull/293">#293</a>)</li> </ul> </details> Signed-off-by: Project Mu Bot <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
A compounds assert was found in a platform. An assert was triggered, and when attempting to generate the assert messages, print lib triggered an assert as well. The system was found to have reached the PcdMaximumAsciiStringLength referenced in AsciiStrLen.
To combat this, the AsciiStrLen calls in AdvancedLogger are being switched to use the safe version, with the associated max lengths being the stack buffers that are used in the functions.
This change allowed assert messages to be displayed.
Fixes #292
flow, or firmware?
validation improvement, ...
in build or boot behavior?
a function in a new library class in a pre-existing module, ...
outside direct code modifications (and comments)?
on an a separate Web page, ...
How This Was Tested
Tested on a platform that was triggering asserts.
Tested in CI
Integration Instructions
N/A - Changes should be