summaryrefslogtreecommitdiff
path: root/drivers/s390/crypto/ap_bus.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 12:09:15 +0300
committerVasily Gorbik <gor@linux.ibm.com>2020-03-23 15:41:54 +0300
commiteb3e064b8dd12d0bc907dbbfc227bca9da252e6f (patch)
treece5ea260338586373a7bfc8d74cfad44d37852b4 /drivers/s390/crypto/ap_bus.c
parent52aeda7accb6d2e511a1b89142cbbf6fd2c12565 (diff)
downloadlinux-eb3e064b8dd12d0bc907dbbfc227bca9da252e6f.tar.xz
s390/zcrypt: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Message-Id: <20200311090915.21059-1-tiwai@suse.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/ap_bus.c')
0 files changed, 0 insertions, 0 deletions