-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add NULL Check to allow IpmiSendCommandInternal flow through avoinding assert as routine does not consider NULL para… #243
Conversation
…meter for ResponseData and ResponseDataSize Parameter Current Behavior: IpmiSendCommandInternal does not consider NULL parameter for ResponseData and ResponseDataSize Parameter Expected Behavior: NULL can be passed as parameter for IN OUT UINT8 *ResponseData, IN OUT UINT8 *ResponseDataSize in IpmiSendCommandInternal Routine FIX APPLIED: Add NULL Check as IpmiSendCommandInternal does not consider NULL parameter for ResponseData and ResponseDataSize Parameter
Could you update the title to indicate this is allowing for a null instance of the response on a send? Right now its unclear if you are adding a check to prevent or allow this. |
Modified the Title |
@microsoft-github-policy-service agree company="AMI" |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #243 +/- ##
==========================================
+ Coverage 27.85% 27.92% +0.07%
==========================================
Files 44 44
Lines 2987 2990 +3
Branches 275 277 +2
==========================================
+ Hits 832 835 +3
Misses 2149 2149
Partials 6 6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
IpmiSendCommandInternal did not allow NULL parameter for ResponseData and ResponseDataSize Parameters.
Expected Behavior:
NULL can be passed as parameter for some specific IPMI commands.
FIX APPLIED:
Allow IpmiSendCommandInternal to allow a NULL parameter as long as ResponseDataSize is zero.
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 with Oem Specific Ipmi Command. Prior to change, cpu exception occurred. After fix, system was able to continue.
Integration Instructions
N/A