Skip to content

Issue 6698 - NPE after configuring invalid filtered role - #6699

Merged
progier389 merged 1 commit into
389ds:mainfrom
progier389:i6698
Mar 28, 2025
Merged

progier389 merged 1 commit into
389ds:mainfrom
progier389:i6698

Conversation

@progier389

@progier389 progier389 commented Mar 27, 2025 •

Copy link
Copy Markdown
Contributor

Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

Comment thread ldap/servers/slapd/filter.c Resolved
@progier389
progier389 merged commit 31e120d into 389ds:main Mar 28, 2025
progier389 added a commit that referenced this pull request Mar 28, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
progier389 added a commit that referenced this pull request Mar 28, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
progier389 added a commit that referenced this pull request Mar 28, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
progier389 added a commit that referenced this pull request Mar 28, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
progier389 added a commit that referenced this pull request Mar 28, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
progier389 added a commit to progier389/389-ds-base that referenced this pull request Apr 2, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: 389ds#6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)
@progier389
progier389 deleted the i6698 branch May 20, 2025 13:06
mreynolds389 pushed a commit that referenced this pull request Jun 9, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
mreynolds389 pushed a commit that referenced this pull request Jun 9, 2025
Server crash when doing search after configuring filtered role with invalid filter.
Reason: The part of the filter that should be overwritten are freed before knowing that the filter is invalid.
Solution: Check first that the filter is valid before freeing the filtere bits

Issue: #6698

Reviewed by: @tbordaz , @mreynolds389 (Thanks!)

(cherry picked from commit 31e120d)
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.

3 participants