summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs-generics.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-06-19 12:30:21 +0200
committerAnand Avati <avati@redhat.com>2012-07-02 15:34:20 -0700
commit528d94380bb9e45ebc4f09d532085476f87f32cc (patch)
tree4c74fb1981551c48afd3888afefd639a271b7037 /xlators/nfs/server/src/nfs-generics.c
parentb9fd37b8a4973929bf3d5e756a1aa4fc803e8c27 (diff)
glusterd-rpc-ops: avoid buffer overrun for over-long key
strncpy explicitly does not NUL-terminate when source string has length >= the length specified via strncpy's 3rd argument. Assuming strncpy is justified (i.e., that it may truncate), be sure to NUL-terminate its destination buffer. Change-Id: Ia67bf136cdfae6d9850f673923c01baa3cdef9d8 BUG: 789278 Signed-off-by: Jim Meyering <meyering@redhat.com> Reviewed-on: http://review.gluster.com/3592 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/nfs/server/src/nfs-generics.c')
0 files changed, 0 insertions, 0 deletions