Whamcloud - gitweb
LU-10264 misc: fix possible array overflow 42/32242/2
authorAndreas Dilger <andreas.dilger@intel.com>
Fri, 9 Mar 2018 23:18:53 +0000 (16:18 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 7 Jun 2018 20:07:10 +0000 (20:07 +0000)
commit200115bc8145b7f5c7a06aa2c57a1a10b60da17d
treef625d4b6f4a3635513ec1c259029a8ea89de547e
parent60c5a6fd35d4d819b61b4f58b33fdd3baefd52e4
LU-10264 misc: fix possible array overflow

Fix a static analysis error.

lustre/obdclass/obd_mount_server.c:1830 in osd_start(), buffer
    flagstr has size 16 but length of format string "%lu:%lu" is 31.
Increase the size of buffer to hold maximal-sized strings plus NUL.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I3cc80d66bbb537161a561f4f2ba7830dde2cab07
Reviewed-on: https://review.whamcloud.com/32242
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/obd_mount_server.c