You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a DNA configuration to provide values for a given attribute, but do not specify the dnamagicregen attribute and value, and you attempt to add/modify that given attribute, the server will crash in _dna_pre_op_modify():
/* If we have a value, see if it's the magic value. */
if (bv) {
len = strlen(config_entry->generate);
if (len == bv->bv_len) {
if (!slapi_UTF8NCASECMP(bv->bv_val,
config_entry->generate,
len)) {
slapi_ch_array_add(&types_to_generate,
slapi_ch_strdup(type));
}
}
because the server does not first check if config_entry->generate is NULL before doing the strlen.
The text was updated successfully, but these errors were encountered:
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/517
If you have a DNA configuration to provide values for a given attribute, but do not specify the dnamagicregen attribute and value, and you attempt to add/modify that given attribute, the server will crash in _dna_pre_op_modify():
because the server does not first check if config_entry->generate is NULL before doing the strlen.
The text was updated successfully, but these errors were encountered: