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

mgmt/hawkbit: Fix null pointer access #49232

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

ycsin
Copy link
Member

@ycsin ycsin commented Aug 18, 2022

Pending testing and approval(s) by issue reporter(s)

Fixes #48863

@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from 2392354 to f28b8cf Compare August 18, 2022 15:29
@ycsin ycsin added the DNM This PR should not be merged (Do Not Merge) label Aug 18, 2022
@ycsin ycsin changed the title subsys/mgmt/hawkbit: Fix null pointer access, error handling subsys/mgmt/hawkbit: Fix null pointer access, error handling, streamline logs Aug 18, 2022
@ycsin
Copy link
Member Author

ycsin commented Aug 18, 2022

Compliance Checks / Run compliance checks on patch series (PR) (pull_request) failure is a false positive detected by check_compliance.py

Not sure how should I go about this, cc @nashif

@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from f28b8cf to 85d79a8 Compare August 19, 2022 00:04
@ycsin
Copy link
Member Author

ycsin commented Aug 19, 2022

@gkujawsk @jeronimoagullo could you test if this PR fixes the issue that you encountered?

@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from 85d79a8 to c7c303a Compare August 19, 2022 05:53
@ycsin ycsin requested a review from sylvioalves August 21, 2022 14:23
@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from c7c303a to be9bc97 Compare August 21, 2022 14:27
@ycsin ycsin changed the title subsys/mgmt/hawkbit: Fix null pointer access, error handling, streamline logs subsys/mgmt/hawkbit: Fix null pointer access Aug 21, 2022
@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from be9bc97 to 5ba810a Compare August 21, 2022 14:28
@ycsin ycsin removed the DNM This PR should not be merged (Do Not Merge) label Aug 21, 2022
@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from 5ba810a to f7b4367 Compare September 12, 2022 15:33
@ycsin ycsin changed the title subsys/mgmt/hawkbit: Fix null pointer access mgmt/hawkbit: Fix null pointer access Sep 12, 2022
If the is no update from the server, the _links will be NULL.
Check if it is NULL before trying to LOG these strings.

Signed-off-by: Yong Cong Sin <[email protected]>
@ycsin ycsin force-pushed the pr/hawkbit_fix_null_links branch from f7b4367 to 590c8ca Compare September 12, 2022 15:33
@sylvioalves
Copy link
Collaborator

@ycsin, I missed this before.

@ycsin ycsin added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Sep 19, 2022
@carlescufi carlescufi merged commit 15b3150 into zephyrproject-rtos:main Sep 19, 2022
@ycsin ycsin deleted the pr/hawkbit_fix_null_links branch September 19, 2022 13:49
@ycsin ycsin added backport v2.7-branch Request backport to the v2.7-branch backport v3.0-branch labels Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: hawkBit backport v2.7-branch Request backport to the v2.7-branch bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
4 participants