diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2016-06-09 14:51:51 (GMT) |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-06-18 00:11:27 (GMT) |
commit | c078f0dd01b73c70b92a660cb1ce3dfc3cbf2903 (patch) | |
tree | a4bccde38f9e65ee6c11a48bbd435af8e2a2609f /block/bsg.c | |
parent | 93dd0a097859a174817ea94ec55bfc29c5706454 (diff) | |
download | linux-c078f0dd01b73c70b92a660cb1ce3dfc3cbf2903.tar.xz |
IB/hfi1: Fix potential buffer overflow
This fixes potential buffer overflow because the sprintf function
doesn't check buffer boundaries. Use snprintf instead.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions