-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Uninitialized scalar variable &temp_data
#68591
Conversation
Hello @Nu1l-ptr, and thank you very much for your first pull request to the Zephyr project! |
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.
The commits need to be squashed into one, if you do a git rebase then mark the other 2 as fixup
. Also the commit title and message should be formatted as per https://docs.zephyrproject.org/latest/contribute/guidelines.html#commit-message-guidelines
I think i need to use |
The |
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.
Click in the comment #68591 (comment):
@@ -266,7 +266,8 @@ static size_t upload_message_header_size(struct img_gr_upload *upload_state) | |||
} else { | |||
map_count = 10; | |||
} | |||
temp_data = NULL; | |||
|
|||
memset(temp_data, 0, sizeof(temp_data)); |
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.
I don't really know what you are doing? Remove this and change line 258 to:
uint8_t temp_data = 0;
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.
sorry, I am not too used to git.
The commits need to be squashed |
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.
Sorry, need to introduce yourself when doing changes:
https://docs.zephyrproject.org/latest/contribute/guidelines.html#signed-off-by
Signed-off-by: nu1lptr <[email protected]>
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.
Title needs to be more defined e.g. mgmt: mcumgr: grp: img_mgmt_client: <blah>
and missing commit message
@Nu1l-ptr we need this fix for the upcoming 3.6.0 release. Please fix the issues or we will need to open a parallel Pull Request fixing this. Thanks in advance! Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. |
Superseded by #68974 |
zcbor_map_start_encode
function is using Uninitialized variable&temp_data
Fixes #68636