Error: COMPILER_WARNING (CWE-704): [#def1] openssl-3.5.5/apps/lib/apps.c: scope_hint: In function 'app_get_pass' openssl-3.5.5/apps/lib/apps.c:266:17: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 266 | tmp = strchr(arg, ':'); # | ^ # 264| } else { # 265| /* argument syntax error; do not reveal too much about arg */ # 266|-> tmp = strchr(arg, ':'); # 267| if (tmp == NULL || tmp - arg > PASS_SOURCE_SIZE_MAX) # 268| BIO_printf(bio_err, Error: COMPILER_WARNING (CWE-704): [#def2] openssl-3.5.5/apps/lib/apps.c:266:17: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 264| } else { # 265| /* argument syntax error; do not reveal too much about arg */ # 266|-> tmp = strchr(arg, ':'); # 267| if (tmp == NULL || tmp - arg > PASS_SOURCE_SIZE_MAX) # 268| BIO_printf(bio_err, Error: COMPILER_WARNING (CWE-704): [#def3] openssl-3.5.5/crypto/conf/conf_mod.c: scope_hint: In function 'module_find' openssl-3.5.5/crypto/conf/conf_mod.c:401:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 401 | p = strrchr(name, '.'); # | ^ # 399| STACK_OF(CONF_MODULE) *mods; # 400| # 401|-> p = strrchr(name, '.'); # 402| # 403| if (p) Error: COMPILER_WARNING (CWE-704): [#def4] openssl-3.5.5/crypto/conf/conf_mod.c:401:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 399| STACK_OF(CONF_MODULE) *mods; # 400| # 401|-> p = strrchr(name, '.'); # 402| # 403| if (p) Error: COMPILER_WARNING (CWE-704): [#def5] openssl-3.5.5/crypto/punycode.c: scope_hint: In function 'ossl_a2ulabel' openssl-3.5.5/crypto/punycode.c:271:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 271 | char *tmpptr = strchr(inptr, '.'); # | ^~~~~~ # 269| # 270| while (1) { # 271|-> char *tmpptr = strchr(inptr, '.'); # 272| size_t delta = tmpptr != NULL ? (size_t)(tmpptr - inptr) : strlen(inptr); # 273| Error: COMPILER_WARNING (CWE-704): [#def6] openssl-3.5.5/crypto/punycode.c:271:24: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 269| # 270| while (1) { # 271|-> char *tmpptr = strchr(inptr, '.'); # 272| size_t delta = tmpptr != NULL ? (size_t)(tmpptr - inptr) : strlen(inptr); # 273| Error: COMPILER_WARNING (CWE-704): [#def7] openssl-3.5.5/crypto/x509/v3_cpols.c: scope_hint: In function 'displaytext_get_tag_len' openssl-3.5.5/crypto/x509/v3_cpols.c:259:19: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 259 | char *colon = strchr(tagstr, ':'); # | ^~~~~~ # 257| static int displaytext_get_tag_len(const char *tagstr) # 258| { # 259|-> char *colon = strchr(tagstr, ':'); # 260| # 261| return (colon == NULL) ? -1 : colon - tagstr; Error: COMPILER_WARNING (CWE-704): [#def8] openssl-3.5.5/crypto/x509/v3_cpols.c:259:19: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 257| static int displaytext_get_tag_len(const char *tagstr) # 258| { # 259|-> char *colon = strchr(tagstr, ':'); # 260| # 261| return (colon == NULL) ? -1 : colon - tagstr; Error: COMPILER_WARNING (CWE-704): [#def9] openssl-3.5.5/crypto/x509/v3_san.c: scope_hint: In function 'do_othername' openssl-3.5.5/crypto/x509/v3_san.c:636:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 636 | if ((p = strchr(value, ';')) == NULL) # | ^ # 634| int objlen; # 635| # 636|-> if ((p = strchr(value, ';')) == NULL) # 637| return 0; # 638| if ((gen->d.otherName = OTHERNAME_new()) == NULL) Error: COMPILER_WARNING (CWE-704): [#def10] openssl-3.5.5/crypto/x509/v3_san.c:636:12: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 634| int objlen; # 635| # 636|-> if ((p = strchr(value, ';')) == NULL) # 637| return 0; # 638| if ((gen->d.otherName = OTHERNAME_new()) == NULL) Error: COMPILER_WARNING (CWE-704): [#def11] openssl-3.5.5/crypto/x509/v3_utl.c: scope_hint: In function 'a2i_IPADDRESS_NC' openssl-3.5.5/crypto/x509/v3_utl.c:1125:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 1125 | p = strchr(ipasc, '/'); # | ^ # 1123| int iplen1, iplen2; # 1124| # 1125|-> p = strchr(ipasc, '/'); # 1126| if (p == NULL) # 1127| return NULL; Error: COMPILER_WARNING (CWE-704): [#def12] openssl-3.5.5/crypto/x509/v3_utl.c:1125:7: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 1123| int iplen1, iplen2; # 1124| # 1125|-> p = strchr(ipasc, '/'); # 1126| if (p == NULL) # 1127| return NULL; Error: COMPILER_WARNING (CWE-704): [#def13] openssl-3.5.5/ssl/t1_lib.c: scope_hint: In function 'gid_cb' openssl-3.5.5/ssl/t1_lib.c:1284:29: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 1284 | && ((current_prefix = strchr(prefixes, elem[0])) != NULL # | ^ # 1282| /* Check the possible prefixes (remark: Leading and trailing spaces already cleared) */ # 1283| while (continue_while_loop && len > 0 # 1284|-> && ((current_prefix = strchr(prefixes, elem[0])) != NULL # 1285| || OPENSSL_strncasecmp(current_prefix = (char *)DEFAULT_GROUPNAME_FIRST_CHARACTER, elem, 1) == 0)) { # 1286| Error: COMPILER_WARNING (CWE-704): [#def14] openssl-3.5.5/ssl/t1_lib.c:1284:29: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type # 1282| /* Check the possible prefixes (remark: Leading and trailing spaces already cleared) */ # 1283| while (continue_while_loop && len > 0 # 1284|-> && ((current_prefix = strchr(prefixes, elem[0])) != NULL # 1285| || OPENSSL_strncasecmp(current_prefix = (char *)DEFAULT_GROUPNAME_FIRST_CHARACTER, elem, 1) == 0)) { # 1286|
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-84.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | openssl-3.5.6-1.fc45 |
| diffbase-store-results-to | /tmp/tmpohatdrq7/openssl-3.5.6-1.fc45.tar.xz |
| diffbase-time-created | 2026-06-01 15:38:01 |
| diffbase-time-finished | 2026-06-01 15:52:13 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpohatdrq7/openssl-3.5.6-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpohatdrq7/openssl-3.5.6-1.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-84.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | openssl-3.5.5-1.fc44 |
| store-results-to | /tmp/tmpavu_6jq6/openssl-3.5.5-1.fc44.tar.xz |
| time-created | 2026-06-01 15:22:34 |
| time-finished | 2026-06-01 15:37:28 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpavu_6jq6/openssl-3.5.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpavu_6jq6/openssl-3.5.5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |