summaryrefslogtreecommitdiff
path: root/lib/bcd.c
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2016-06-09 14:51:51 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-06-18 00:11:27 (GMT)
commitc078f0dd01b73c70b92a660cb1ce3dfc3cbf2903 (patch)
treea4bccde38f9e65ee6c11a48bbd435af8e2a2609f /lib/bcd.c
parent93dd0a097859a174817ea94ec55bfc29c5706454 (diff)
downloadlinux-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 'lib/bcd.c')
0 files changed, 0 insertions, 0 deletions