Whamcloud - gitweb
LU-9412 lfs: A invalid memory write in llapi_layout_to_lum 58/26858/4
authorBobi Jam <bobijam.xu@intel.com>
Thu, 27 Apr 2017 10:29:09 +0000 (18:29 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 May 2017 18:46:19 +0000 (18:46 +0000)
commit2270ad3c85802d5fcd3cfcbd8bd109991d8d686f
tree66884ab20fa9d3198b9eecbc403f175109af351d
parent82e267a4388269724c05a08781efb8f533d68f60
LU-9412 lfs: A invalid memory write in llapi_layout_to_lum

When lum is realloc(), the comp_v1 needs to be updated, otherwise
it could point to the old invalid memory area.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I4493e5f13bce22dae07200bada14ba2349635890
Reviewed-on: https://review.whamcloud.com/26858
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/liblustreapi_layout.c