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

Mem leak in ucstr.c file of openldap #5

Open
daraamer opened this issue Aug 21, 2019 · 0 comments
Open

Mem leak in ucstr.c file of openldap #5

daraamer opened this issue Aug 21, 2019 · 0 comments

Comments

@daraamer
Copy link

There is a mem leak at at least 3 points in ucstr.c file inside struct berval * UTF8bvnormalize() function. Following are the positions:

if ( out == NULL ) {
return NULL
}

However, we have already allocated memory to "newbv" field earlier. There are three places where this is being done.
The memory for "newbv" field should have been freed before returning to the caller in case of failure.

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

No branches or pull requests

1 participant