Task #100180 - fixed.err

back to task #100180
download
Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/lib/certmap/sss_certmap.c: scope_hint: In function 'get_type_prefix'
sssd-2.13.0/src/lib/certmap/sss_certmap.c:106:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  104|       *rule_start = match_rule;
#  105|   
#  106|->     delim = strchr(match_rule, ':');
#  107|       if (delim == NULL) {
#  108|           /* no type prefix found */

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/lib/certmap/sss_certmap.c: scope_hint: In function 'expand_sid'
sssd-2.13.0/src/lib/certmap/sss_certmap.c:586:13: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  584|           exp = talloc_strdup(ctx, sid);
#  585|       } else if (strcasecmp(attr_name, "rid") == 0) {
#  586|->         sep = strrchr(sid, '-');
#  587|           if (sep == NULL || sep[1] == '\0') {
#  588|               CM_DEBUG(ctx, "Unsupported SID string [%s].", sid);

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ad/ad_access.c: scope_hint: In function 'parse_sub_filter'
sssd-2.13.0/src/providers/ad/ad_access.c:73:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#   71|       char *specdelim;
#   72|   
#   73|->     specdelim = strchr(full_filter, ':');
#   74|       if (specdelim == NULL) return EINVAL;
#   75|   

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ad/ad_access.c: scope_hint: In function 'parse_filter'
sssd-2.13.0/src/providers/ad/ad_access.c:112:13: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  110|       if (filter == NULL || spec == NULL || flags == NULL) return EINVAL;
#  111|   
#  112|->     kwdelim = strchr(full_filter, ':');
#  113|       if (kwdelim != NULL) {
#  114|           specdelim = strchr(kwdelim+1, ':');

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ldap/sdap.c: scope_hint: In function 'split_extra_attr'
sssd-2.13.0/src/providers/ldap/sdap.c:101:9: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#   99|       char *sep;
#  100|   
#  101|->     sep = strchr(conf_attr, ':');
#  102|       if (sep == NULL) {
#  103|           sysdb_attr = talloc_strdup(mem_ctx, conf_attr);

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ldap/sdap_async_groups.c: scope_hint: In function 'are_sids_from_same_dom'
sssd-2.13.0/src/providers/ldap/sdap_async_groups.c:748:10: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  748 |     rid1 = strrchr(sid1, '-');
#      |          ^
#  746|       bool result;
#  747|   
#  748|->     rid1 = strrchr(sid1, '-');
#  749|       if (rid1 == NULL) {
#  750|           return EINVAL;

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ldap/sdap_async_groups.c:753:10: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  753 |     rid2 = strrchr(sid2, '-');
#      |          ^
#  751|       }
#  752|   
#  753|->     rid2 = strrchr(sid2, '-');
#  754|       if (rid2 == NULL) {
#  755|           return EINVAL;

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/providers/ldap/sdap_range.c: scope_hint: In function 'sdap_parse_range'
sssd-2.13.0/src/providers/ldap/sdap_range.c:48:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#   48 |     endptr = strchr(attr_desc, ';');
#      |            ^
#   46|   
#   47|       /* The base_attr is the portion before the semicolon (if it exists) */
#   48|->     endptr = strchr(attr_desc, ';');
#   49|       if (endptr == NULL) {
#   50|           /* Not a ranged attribute. Just copy the attribute desc */

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/util/util.c: scope_hint: In function 'domain_to_basedn'
sssd-2.13.0/src/util/util.c:574:15: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
#  572|       dn = talloc_strdup(memctx, "dc=");
#  573|   
#  574|->     while ((p = strchr(s, '.'))) {
#  575|           l = p - s;
#  576|           dn = talloc_asprintf_append_buffer(dn, "%.*s,dc=", l, s);

Error: COMPILER_WARNING (CWE-704):
sssd-2.13.0/src/util/util.c: scope_hint: In function ‘domain_to_basedn’
sssd-2.13.0/src/util/util.c:574:15: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  572|       dn = talloc_strdup(memctx, "dc=");
#  573|   
#  574|->     while ((p = strchr(s, '.'))) {
#  575|           l = p - s;
#  576|           dn = talloc_asprintf_append_buffer(dn, "%.*s,dc=", l, s);