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

[Backport v4.0-branch] lib: shell: replace strtol with strtoul in cmd_load for address parsing #81697

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Nov 21, 2024

Backport 1aaf08f from #81563.

Fixes #81343

Addresses in cmd_load() should always be unsigned. Previously, strtol()
was used, which is limited to signed long values, causing issues with
addresses >= 0x80000000. This commit replaces strtol() with strtoul(),
ensuring proper handling of the full 32-bit address space.

Fixes #81343

Signed-off-by: Aaron Fontaine <[email protected]>
Signed-off-by: Jakub Rzeszutko <[email protected]>
(cherry picked from commit 1aaf08f)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Shell Shell subsystem labels Nov 21, 2024
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 6, 2024
@dkalowsk dkalowsk merged commit bd1db48 into v4.0-branch Dec 6, 2024
28 of 29 checks passed
@dkalowsk dkalowsk deleted the backport-81563-to-v4.0-branch branch December 6, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants