#50621 Issue 50620 - Fix regressions from 50506 (slapi_enry_attr_get_ref)
Closed by spichugi. Opened by mreynolds.
mreynolds/389-ds-base attrRef  into  master

Download 50621.patch

Description: Some crashes were found in upstream testing. Needed
to revert slapi_entry_attr_get_ref() back to slapi_entry_attr_get_charptr()

relates: https://pagure.io/389-ds-base/issue/50620

cast is not required

cast not required

I think there is a risk of double free in the later call 'dash_guid' that can call slapi_ch_free_string

I think there is a risk of double free in the later call 'dash_guid' that can call slapi_ch_free_string

Well this is how the original code was, and if it is freed the pointer "should" be set to NULL, so the double free "should" not occur.

rebased onto f43477f88686b465b93a478710bd92638110dc79

rebased onto 988eb0159f84d8e49fee6c5c4101b27cdc9c357f

ahoy, upstream testing here :D the latest version of the patch looks good so far.

This pointer will be overwritten if ldbm_index_parse_entry is called.
I think ldbm_index_parse_entry should free it before overwriting it but then it ldbm_instance_index_config_add_callback should init index_name=NULL;

This pointer will be overwritten if ldbm_index_parse_entry is called.
I think ldbm_index_parse_entry should free it before overwriting it but then it ldbm_instance_index_config_add_callback should init index_name=NULL;

This is a revert to the original code, but I see what you saying. I'll fix this as well.

rebased onto c54a4310a617ef752dacdf5e2a3ce45e4c348f72

rebased onto fce5c6c034e9f46aff034a760665a1cf044d68ce

This pointer will be overwritten if ldbm_index_parse_entry is called.
I think ldbm_index_parse_entry should free it before overwriting it but then it ldbm_instance_index_config_add_callback should init index_name=NULL;

Changes applied, please review...

Thanks Mark. The fix looks good to me. ACK

Pull-Request has been merged by mreynolds

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3676

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

Metadata