diff options
author | Subha sree Mohankumar <smohanku@redhat.com> | 2017-09-22 16:13:44 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-10-10 15:46:20 +0000 |
commit | dc3cd44add80fb56fae2492cb8ad264be04f46fc (patch) | |
tree | f6dc93007f9c089538ff718a1ffbdfd3cc8ddd11 /xlators/cluster/dht/src/dht-lock.c | |
parent | 3afbe4201d864d2e886509f5633468aa344fa444 (diff) |
xlator/debug :coverity Issue BUFFER_SIZE
Issue :Calling strncpy with a source string whose length (2 chars)
is greater than or equal to the size argument (2) will fail to
null-terminate "trace_fop_names[i].name".
Solution : The size argument is obtained from
sizeof(trace_fop_names[i].name).
Change-Id: I99fad2693054f3af84d78da34c61258233d3049a
BUG: 789278
Signed-off-by: Subha sree Mohankumar <smohanku@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-lock.c')
0 files changed, 0 insertions, 0 deletions