Skip to content

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
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