Whamcloud - gitweb
LU-5832 utils: Fix buffer overflow in bound string copy 16/12516/8
authorDmitry Eremin <dmitry.eremin@intel.com>
Fri, 31 Oct 2014 10:45:26 +0000 (13:45 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 23 Nov 2014 07:07:48 +0000 (07:07 +0000)
commit62a9ad817017d677b1914f0838d4a66ce64d2270
tree0c10a80fa8dd355c443946b2cb6710b859061dc7
parent66e9055b23433bd0aa8da5e49f3b665fb1b95532
LU-5832 utils: Fix buffer overflow in bound string copy

The function 'strncpy' may incorrectly check buffer boundaries
and may overflow buffer 'info->name' of fixed size (256). Also
there is one similar error on line 1135.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I512ab6678fbf1d02bac2eb290fd13c22fca9dc2b
Reviewed-on: http://review.whamcloud.com/12516
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lustre_rsync.c