blktrace: backport upstream bugfix patches Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
27 lines
669 B
Diff
27 lines
669 B
Diff
From 84a054951222f902a07bf77dfee0d80c83ee9c6a Mon Sep 17 00:00:00 2001
|
|
From: Jens Axboe <axboe@kernel.dk>
|
|
Date: Sun, 5 Nov 2017 08:54:41 -0700
|
|
Subject: [PATCH 02/15] btt/devs: silence warning on sprintf overflow
|
|
|
|
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
|
---
|
|
btt/devs.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/btt/devs.c b/btt/devs.c
|
|
index ccaae87..12ce2ca 100644
|
|
--- a/btt/devs.c
|
|
+++ b/btt/devs.c
|
|
@@ -108,7 +108,7 @@ void dip_exit(void)
|
|
static inline FILE *open_pit(struct d_info *dip)
|
|
{
|
|
FILE *fp;
|
|
- char str[256];
|
|
+ char str[272];
|
|
|
|
sprintf(str, "%s_pit.dat", dip->dip_name);
|
|
if ((fp = my_fopen(str, "w")) == NULL)
|
|
--
|
|
1.8.3.1
|
|
|