فهرست منبع

609255 - fix coverity Defect Type: Memory - illegal accesses issues

https://bugzilla.redhat.com/show_bug.cgi?id=609255

12230 UNINIT Triaged Unassigned Bug Minor Fix Required
preop_add() ds/ldap/servers/plugins/uiduniq/7bit.c

Comment:
Some cases such as NULL attrName is passed or it does not have a value,
uninitialized "violated" is passed to slapi_ch_smprintf via issue_error.
We should init violated to NULL.

12231 UNINIT Triaged Unassigned Bug Unspecified Fix Required
preop_modify() ds/ldap/servers/plugins/uiduniq/7bit.c

Comment:
Some cases such as NULL attrName is passed or mods were empty,
uninitialized "violated" is passed to slapi_ch_smprintf via issue_error.
We should init violated to NULL.

12232 UNINIT Triaged Unassigned Bug Minor Fix Required
preop_modrdn() ds/ldap/servers/plugins/uiduniq/7bit.c

Comment:
Some cases such as NULL attrName is passed or it does not have a value,
uninitialized "violated" is passed to slapi_ch_smprintf via issue_error.
We should init violated to NULL.
Noriko Hosoi 15 سال پیش
والد
کامیت
866d13e447
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      ldap/servers/plugins/uiduniq/7bit.c

+ 3 - 3
ldap/servers/plugins/uiduniq/7bit.c

@@ -217,7 +217,7 @@ static int
 preop_add(Slapi_PBlock *pb)
 {
   int result;
-  char *violated;
+  char *violated = NULL;
 
 #ifdef DEBUG
   slapi_log_error(SLAPI_LOG_PLUGIN, plugin_name, "ADD begin\n");
@@ -359,7 +359,7 @@ static int
 preop_modify(Slapi_PBlock *pb)
 {
   int result;
-  char *violated;
+  char *violated = NULL;
   LDAPMod **checkmods = NULL; /* holds mods to check */
   int checkmodsCapacity = 0; /* max capacity of checkmods */
 
@@ -522,7 +522,7 @@ preop_modrdn(Slapi_PBlock *pb)
 {
   int result;
   Slapi_Entry *e;
-  char *violated;
+  char *violated = NULL;
 
 #ifdef DEBUG
     slapi_log_error(SLAPI_LOG_PLUGIN, plugin_name,