projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f41c13
)
drivers: ufs: fix buffer overflow in sprintf
author
Anan Jaser
<ananjaser@gmail.com>
Tue, 22 Sep 2020 20:22:57 +0000
(
00:22
+0400)
committer
ivanmeler
<i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:14:06 +0000
(21:14 +0000)
drivers/scsi/ufs/ufshcd.c:7588:3: error: 'sprintf' will always overflow; destination buffer has size 16, but format string expands to at le
ast 17 [-Werror,-Wfortify-source]
sprintf(buf, "U%dH%dL%dX%dQ%dR%dW%dF%d",
^
Change-Id: Ic03043dc5df59faf7f19a03deb2fb2d558910db0
drivers/scsi/ufs/ufshcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ufs/ufshcd.c
b/drivers/scsi/ufs/ufshcd.c
index e20909112c61628bcb97b5fe622c7c745092f04a..280fdf3dda46efe68aeb8d385f8768f4db48e4b0 100644
(file)
--- a/
drivers/scsi/ufs/ufshcd.c
+++ b/
drivers/scsi/ufs/ufshcd.c
@@
-7572,7
+7572,7
@@
static struct devfreq_dev_profile ufs_devfreq_profile = {
static void ufs_sec_send_errinfo (void *data) {
static struct ufs_hba *hba = NULL;
struct SEC_UFS_counting *err_info;
- char buf[1
6
];
+ char buf[1
7
];
if (data) {
hba = (struct ufs_hba *)data;