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

llext: fix minor Coverity issue #434586 (again) #83757

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

pillo79
Copy link
Collaborator

@pillo79 pillo79 commented Jan 9, 2025

The check combination of "is zero" and then "less than zero" leaves open the theoretical possibility of a positive return value, which would continue on with an uinitialized sym.

Checking for "not zero" has the same effect and covers all situations.

Commit 56fd854 did the same thing for rela a few lines above, but missed this instance.
No other places in the llext code have this issue.

The check combination of "is zero" and then "less than zero" leaves open
the theoretical possibility of a positive return value, which would
continue on with an uinitialized 'sym'.

Checking for "not zero" has the same effect and covers all situations.

Commit 56fd854 did the same thing for 'rela' a few lines above, but
missed this instance. No other places in the llext code have this issue.

Signed-off-by: Luca Burelli <[email protected]>
@zephyrbot zephyrbot added size: XS A PR changing only a single line of code area: llext Linkable Loadable Extensions labels Jan 9, 2025
@zephyrbot zephyrbot requested review from lyakh and teburd January 9, 2025 16:31
@pillo79 pillo79 added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Jan 9, 2025
@kartben kartben merged commit 820f0ae into zephyrproject-rtos:main Jan 10, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: llext Linkable Loadable Extensions size: XS A PR changing only a single line of code Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants