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

Issue 4429 - NULL dereference in revert_cache() #4430

Merged
merged 1 commit into from Nov 12, 2020

Conversation

mreynolds389
Copy link
Contributor

Bug Description: During a delete, if the DN (with an escaped leading space)
of an existing entry fail to parse the server will revert
the entry update. In this case it will lead to a crash
becuase ther ldbm inst struct is not set before it attempts
the cache revert.

Fix Description: Check the the ldbm instance struct is not NULL before
dereferencing it.

Relates: #4429

Reviewed by: ?

Copy link
Member

@droideck droideck left a comment

Choose a reason for hiding this comment

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

The C code change looks good to me! You have my ack.

P.S. the server doesn't crash during the test even if the change is not present. But maybe it's not 100% reproducible and happens not every time.

@Firstyear
Copy link
Contributor

Ack from me too

Bug Description:  During a delete, if the DN (with an escaped leading space)
                  of an existing entry fail to parse the server will revert
                  the entry update.  In this case it will lead to a crash
                  becuase ther ldbm inst struct is not set before it attempts
                  the cache revert.

Fix Description:  Check the the ldbm instance struct is not NULL before
                  dereferencing it.

Relates: 389ds#4429

Reviewed by: firstyear & spichugi(Thanks!!)
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.

None yet

3 participants