Skip to content

Issue 6245 - covscan fixes #6246

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

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Conversation

progier389
Copy link
Contributor

@progier389 progier389 commented Jul 1, 2024

Fix issues reported by coverity scan static analyzer

Issue: #6245

Reviewed by: @mreynolds389 (Thanks!)

slapi_pblock_set(pb, SLAPI_SEARCH_RESULT_ENTRY, NULL);
delete_search_result_set(pb, &sr);
rc = SLAPI_FAIL_GENERAL;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What coverity issue is this fixing? Just curious :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unreachable code.
There is no break in the while(1) loop but only some "goto bail;"
so the code between the end of the loop and the bail label is unreachable

@progier389
Copy link
Contributor Author

Fixed the comment typo.

@progier389 progier389 linked an issue Jul 2, 2024 that may be closed by this pull request
@progier389 progier389 merged commit b47cbe0 into 389ds:main Jul 2, 2024
192 of 193 checks passed
progier389 added a commit that referenced this pull request Jul 19, 2024
PR #6246 generated 300 new coverity scan defect about uninitialized variable because slapi_pblock_get is
within #ifndef COVERITY
Since it generates more warning than it fixes, this change revert this part.

Issue: #6245

Reviewed by: @vashirov , @droideck (Thanks!)
@progier389 progier389 deleted the i5_covscan2024 branch May 20, 2025 13:04
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.

Fix some coverity scan issues
2 participants