Task #119270 - fixed.err
back to task #119270download
Error: COMPILER_WARNING (CWE-704):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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):
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|