diff options
author | Steve Dickson <steved@redhat.com> | 2018-09-07 12:35:47 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2018-09-11 11:58:11 -0400 |
commit | 489dd50140eadb8bad1b37b5ec49078d43735bb9 (patch) | |
tree | 3d3a3fbab72fbd68c413b810d0bf9bff2d409f64 /src | |
parent | 25fdba9b81553247cb253d42b263b01a5cb3f7a5 (diff) | |
download | ti-rpc-489dd50140eadb8bad1b37b5ec49078d43735bb9.tar.gz |
auth_gss.c: buffer_size_warning
Calling strncpy with a maximum size argument of 128 bytes on
destination array "options_ret->actual_mechanism" of size 128
bytes might leave the destination string unterminated
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/auth_gss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth_gss.c b/src/auth_gss.c index 289bd5b..7d08262 100644 --- a/src/auth_gss.c +++ b/src/auth_gss.c @@ -593,7 +593,7 @@ _rpc_gss_refresh(AUTH *auth, rpc_gss_options_ret_t *options_ret) if (rpc_gss_oid_to_mech(actual_mech_type, &mechanism)) { strncpy(options_ret->actual_mechanism, mechanism, - sizeof(options_ret->actual_mechanism)); + (sizeof(options_ret->actual_mechanism)-1)); } gd->established = TRUE; |