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

Shim 15.5 coverity #439

Merged
merged 2 commits into from
Dec 10, 2021
Merged

Shim 15.5 coverity #439

merged 2 commits into from
Dec 10, 2021

Conversation

vathpela
Copy link
Contributor

I've fixed stuff that coverity found that's not in Cryptlib/ or gnu-efi/

cov-analysis-linux64-2020.09 is a lot more successful than the older
versions at building, but it still has some... issues.  Among them, it
is of the belief that this:

void
foo(char *fmt, ...)
{
  __builtin_va_list ap;

  __builtin_ms_va_start(ap, fmt); /* <- here */
  ...
}

is an uninitialized use of "ap".

This patch adds defined(__COVERITY__) to the list of criteria for using
sysv va lists, which it has no such confusion about.

Signed-off-by: Peter Jones <pjones@redhat.com>
- one missing free
- one minor deadcode issue
- two unchecked allocations
- one debug hexdump of a variable we just freed

Signed-off-by: Peter Jones <pjones@redhat.com>
@vathpela vathpela merged commit d0df930 into rhboot:main Dec 10, 2021
@vathpela vathpela deleted the shim-15.5-coverity branch December 10, 2021 22:08
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