Skip to content

Fix duplicate detection logic in slapi_str2charray_ext by ensuring exact match on string length#6333

Merged
progier389 merged 1 commit into389ds:mainfrom
PavlNekrasov:fix/duplicate-detection-exact-match
Sep 23, 2024
Merged

Fix duplicate detection logic in slapi_str2charray_ext by ensuring exact match on string length#6333
progier389 merged 1 commit into389ds:mainfrom
PavlNekrasov:fix/duplicate-detection-exact-match

Conversation

@PavlNekrasov
Copy link
Copy Markdown
Contributor

@PavlNekrasov PavlNekrasov commented Sep 22, 2024

Updated the condition for checking duplicates to ensure that the lengths of the candidate and original strings are equal. This prevents false positives by confirming that the strings are identical at the start and match in length, enforcing an exact duplicate check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reporter: Pavel Nekrasov (p.nekrasov@fobos-nt.ru).

issue: #6338

Reviewed by: @progier

Updated the condition for checking duplicates to ensure that the lengths of the candidate and original strings are equal. This prevents false positives by confirming that the strings are identical at the start and match in length, enforcing an exact duplicate check.
Copy link
Copy Markdown
Contributor

@progier389 progier389 left a comment

Choose a reason for hiding this comment

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

LGTM

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 multi valued parameters configuration code

2 participants