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

Coverity fixes 20211208 #189

Merged
merged 5 commits into from
Dec 8, 2021

Conversation

vathpela
Copy link
Contributor

@vathpela vathpela commented Dec 8, 2021

This is a pile of minor fixes for stuff coverity and scan-build found that aren't related to PR 184.

Once again, coverity fails to actually build anything with certain
versions of gcc:

- it looks like the _Float128 definitions might actually not cause a
  problem now!
- But _Mdouble_Complex_ does
- And so do the __malloc__ attributes that use arguments

This attempts to work around these problems, none of which should
actually affect operation of any code, when coverity is in use.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Coverity spotted that in this one case of print_dev_dp_node() we don't
handle the return value from efidp_make_end_entire().

Signed-off-by: Peter Jones <pjones@redhat.com>
[rharwood@redhat.com: commit message tweaks]
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Coverity has correctly noted that despite its name,
efidp_infiniband.ioc_guid is not in fact a GUID, and can't be printed
like one.

This gets rid of the extra code.  I'm still not sure we're printing it
correctly, but until someone notices that we're not, that's probably
fine.

Signed-off-by: Peter Jones <pjones@redhat.com>
@frozencemetery frozencemetery merged commit c745bb5 into rhboot:main Dec 8, 2021
@vathpela vathpela deleted the coverity-fixes-20211208 branch December 9, 2021 15:02
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.

None yet

2 participants