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

Some bugs spotted by coverity #399

Merged
merged 1 commit into from
May 28, 2020
Merged

Some bugs spotted by coverity #399

merged 1 commit into from
May 28, 2020

Conversation

chrissie-c
Copy link
Contributor

No description provided.

Copy link
Contributor

@kgaillot kgaillot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one suggestion

lib/ringbuffer.c Show resolved Hide resolved
@chrissie-c
Copy link
Contributor Author

Looking closely into this, that NULL test is a complete red herring. Even covscan dpoesn't complain if I remove the existing one. The value of rb->shared_hdr has to be either valid or MAP_FAILED

@kgaillot
Copy link
Contributor

Makes sense to me, looks good

@chrissie-c chrissie-c merged commit bdc7160 into ClusterLabs:master May 28, 2020
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.

2 participants