Skip to content
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

Fix format and leaks #51

Closed
wants to merge 12 commits into from

Conversation

ghbaccount
Copy link
Contributor

No description provided.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This patch fixes access to uninitialized variable, causing ASSERT from
FreePool at least.

Before this patch RedfishSettingsResponse was initialized by
GetResourceByUri under 'if (JsonValue != NULL)' condition.
But freed under 'if (Private->Payload != NULL)' condition.
Thus uninitialized pointers caused ASSERT on attempt to free memory.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Memory allocated by calloc() is filled with bytes of value zero.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
This patch fixes leak in RedfishExternalResourceResourceFeatureCallback
function.

Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
Signed-off-by: Mike Maslenkin <mike.maslenkin@gmail.com>
@ghbaccount ghbaccount closed this Sep 28, 2023
@ghbaccount ghbaccount deleted the fix_format_and_leaks branch September 28, 2023 18:34
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.

1 participant