Snippets for openssh 10.4p1 from Fedora ppc64le
Sourced from https://kojipkgs.fedoraproject.org/packages/openssh/10.4p1/2.fc45/data/logs/ppc64le/build.log.
-
base64.c:212:21: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 212 | pos = strchr(Base64, ch); | ^ -
match.c:283:24: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 283 | if ((p = strrchr(pattern, '@')) != NULL && | ^ -
log.c:402:53: warning: ‘: ’ directive output may be truncated writing 2 bytes into a region of size between 1 and 1024 [-Wformat-truncation=] 402 | snprintf(fmtbuf, sizeof(fmtbuf), "%s: %s", msgbuf, suffix); | ^~ -
log.c:471:67: warning: ‘%ld’ directive output may be truncated writing between 1 and 11 bytes into a region of size between 8 and 111 [-Wformat-truncation=] 471 | snprintf(tag, sizeof(tag), "%.48s:%.48s():%d (bin=%s, pid=%ld)", | ^~~ -
hostfile.c:93:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 93 | if ((p = memchr(s, HASH_DELIM, l)) == NULL) { | ^ -
hostfile.c:525:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 525 | if ((p = strrchr(filename, '/')) == NULL) | ^ -
getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
gss-genr.c:132:32: warning: unused variable ‘md’ [-Wunused-variable] 132 | struct ssh_digest_ctx *md = NULL; | ^~ -
gss-genr.c:182:30: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 182 | cp = strncpy(s, kex, strlen(kex)); | ^ -
misc.c:1399:37: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1399 | if ((varend = strchr(string, '}')) == NULL) { | ^ -
misc.c:775:40: warning: ‘%02llu’ directive output may be truncated writing between 2 and 14 bytes into a region of size 9 [-Wformat-truncation=] 775 | snprintf(buf, TF_LEN, "%02lluw%01ud%02uh", week, day, hrs); | ^~~~~~ -
port-linux.c:68:1: warning: ‘ssh_selinux_getctxbyname’ defined but not used [-Wunused-function] 68 | ssh_selinux_getctxbyname(char *pwname) | ^~~~~~~~~~~~~~~~~~~~~~~~ -
kexmlkem768x25519.c:659:82: warning: passing argument 2 of ‘OSSL_PARAM_construct_utf8_string’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 659 | params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME, curve_name, 0); | ^~~~~~~~~~ -
kexmlkem768x25519.c:739:82: warning: passing argument 2 of ‘OSSL_PARAM_construct_utf8_string’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 739 | params[0] = OSSL_PARAM_construct_utf8_string(OSSL_PKEY_PARAM_GROUP_NAME, curve_name, 0); | ^~~~~~~~~~ -
kexmlkem768x25519.c:823:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 823 | debug_f("Unexpected length of uncompressed public key: expected %d, got %d", buf_len, required_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ | | | size_t {aka long unsigned int} -
kexmlkem768x25519.c:823:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=] 823 | debug_f("Unexpected length of uncompressed public key: expected %d, got %d", buf_len, required_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ | | | size_t {aka long unsigned int} -
port-linux-sshd.c:67:1: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 67 | sshd_selinux_send_audit_message(int success, security_context_t default_context, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:68:24: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 68 | security_context_t selected_context) | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:114:1: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 114 | mls_range_allowed(security_context_t src, security_context_t dst) | ^~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:114:1: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations]
-
port-linux-sshd.c:141:9: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 141 | security_context_t *sc) { | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:179:17: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 179 | security_context_t obtained_raw; | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:180:17: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 180 | security_context_t requested_raw; | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:239:1: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 239 | sshd_selinux_getctxbyname(char *pwname, security_context_t *default_sc, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:240:5: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 240 | security_context_t *user_sc, int inetd, Authctxt *the_authctxt) | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:271:25: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 271 | security_context_t sshdsc=NULL; | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:292:33: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 292 | security_context_t default_level_sc = *default_sc; | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:385:9: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 385 | security_context_t user_ctx = NULL; | ^~~~~~~~~~~~~~~~~~ -
port-linux-sshd.c:387:9: warning: ‘security_context_t’ is deprecated [-Wdeprecated-declarations] 387 | security_context_t default_ctx = NULL; | ^~~~~~~~~~~~~~~~~~ -
kexgssc.c:618:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘u_int’ {aka ‘unsigned int’} [-Wsign-compare] 618 | if (BN_num_bits(p) < kex->min || BN_num_bits(p) > kex->max) | ^ -
kexgssc.c:618:57: warning: comparison of integer expressions of different signedness: ‘int’ and ‘u_int’ {aka ‘unsigned int’} [-Wsign-compare] 618 | if (BN_num_bits(p) < kex->min || BN_num_bits(p) > kex->max) | ^ -
ssh-pkcs11-uri.c:138:20: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 138 | cp = strchr(allow_list, data[i]); | ^ -
ssh-pkcs11.c:579:52: warning: passing argument 1 of ‘pkcs11_lookup_key’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 579 | struct pkcs11_key *k11 = pkcs11_lookup_key(key); | ^~~ -
clientloop.c:2123:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 2123 | if ((cp = strchr(hosts, ',')) == NULL) | ^ -
mux.c:239:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 239 | if ((cp = strchr(env, '=')) == NULL || cp == env) | ^ -
sshd-session.c:1581:20: warning: unused variable ‘auth_attempted’ [-Wunused-variable] 1581 | extern int auth_attempted; /* monitor.c */ | ^~~~~~~~~~~~~~ -
auth2-gss.c:262:16: warning: unused variable ‘len’ [-Wunused-variable] 262 | size_t len; | ^~~ -
auth2-gss.c:261:17: warning: unused variable ‘p’ [-Wunused-variable] 261 | u_char *p; | ^ -
gss-serv-krb5.c:356:16: warning: variable ‘linenum’ set but not used [-Wunused-but-set-variable=] 356 | u_long linenum = 0; | ^~~~~~~ -
misc.h:164:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 164 | __attribute__((__bounded__( __minbytes__, 1, 8))); | ^~~~~~~~~~~~~ -
misc.h:166:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 166 | __attribute__((__bounded__( __minbytes__, 1, 4))); | ^~~~~~~~~~~~~ -
misc.h:168:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 168 | __attribute__((__bounded__( __minbytes__, 1, 2))); | ^~~~~~~~~~~~~ -
misc.h:170:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 170 | __attribute__((__bounded__( __minbytes__, 1, 8))); | ^~~~~~~~~~~~~ -
misc.h:172:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 172 | __attribute__((__bounded__( __minbytes__, 1, 4))); | ^~~~~~~~~~~~~ -
misc.h:174:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 174 | __attribute__((__bounded__( __minbytes__, 1, 2))); | ^~~~~~~~~~~~~ -
misc.h:178:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 178 | __attribute__((__bounded__(__minbytes__, 1, 4))); | ^~~~~~~~~~~~~ -
misc.h:180:5: warning: ‘bounded’ attribute directive ignored [-Wattributes] 180 | __attribute__((__bounded__(__minbytes__, 1, 4))); | ^~~~~~~~~~~~~ -
scp.c:1545:56: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 2 and 4095 [-Wformat-truncation=] 1545 | (void) snprintf(path, sizeof path, "%s/%s", name, dp->d_name); | ^~ -
sftp.c:1094:61: warning: ‘%3llu’ directive output may be truncated writing between 3 and 20 bytes into a region of size 16 [-Wformat-truncation=] 1094 | snprintf(s_icapacity, sizeof(s_icapacity), "%3llu%%", | ^~~~~ -
sftp.c:1101:61: warning: ‘%3llu’ directive output may be truncated writing between 3 and 20 bytes into a region of size 16 [-Wformat-truncation=] 1101 | snprintf(s_dcapacity, sizeof(s_dcapacity), "%3llu%%", | ^~~~~ -
ssh-keygen.c:1102:55: warning: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 1023 [-Wformat-truncation=] 1102 | snprintf(comment, sizeof comment, "%s@%s", pw->pw_name, | ^~ 1103 | hostname); | ~~~~~~~~ -
ssh-keygen.c:351:41: warning: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 39 [-Wformat-truncation=] 351 | "%u-bit %s, converted by %s@%s from OpenSSH", | ^~ 352 | sshkey_size(k), sshkey_type(k), 353 | pw->pw_name, hostname); | ~~~~~~~~ -
ssh-keygen.c:3907:55: warning: ‘%s’ directive output may be truncated writing up to 1024 bytes into a region of size 1023 [-Wformat-truncation=] 3907 | snprintf(comment, sizeof comment, "%s@%s", pw->pw_name, hostname); | ^~ ~~~~~~~~ -
gnome-ssh-askpass3.c:184:17: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations] 184 | gtk_widget_modify_fg(dialog, GTK_STATE_NORMAL, &fg); | ^~~~~~~~~~~~~~~~~~~~ -
gnome-ssh-askpass3.c:186:17: warning: ‘gtk_widget_modify_bg’ is deprecated: Use 'gtk_widget_override_background_color' instead [-Wdeprecated-declarations] 186 | gtk_widget_modify_bg(dialog, GTK_STATE_NORMAL, &bg); | ^~~~~~~~~~~~~~~~~~~~ -
gnome-ssh-askpass3.c:191:25: warning: ‘gtk_widget_modify_fg’ is deprecated: Use 'gtk_widget_override_color' instead [-Wdeprecated-declarations] 191 | gtk_widget_modify_fg(entry, GTK_STATE_NORMAL, &fg); | ^~~~~~~~~~~~~~~~~~~~ -
gnome-ssh-askpass3.c:193:25: warning: ‘gtk_widget_modify_bg’ is deprecated: Use 'gtk_widget_override_background_color' instead [-Wdeprecated-declarations] 193 | gtk_widget_modify_bg(entry, GTK_STATE_NORMAL, &bg); | ^~~~~~~~~~~~~~~~~~~~ -
gnome-ssh-askpass3.c:136:21: warning: unused variable ‘failed’ [-Wunused-variable] 136 | const char *failed; | ^~~~~~ -
gnome-ssh-askpass3.c:243:39: warning: ‘entry’ may be used uninitialized [-Wmaybe-uninitialized] 243 | passphrase = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^ -
./openbsd-compat/getopt_long.c:441:18: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 441 | (oli = strchr(options, optchar)) == NULL) { | ^