Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Mar 12, 2019

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit e39863e3cb61bb750f5e7d87fcf11c2bf4651996:

t/io_uring: add depth options (2019-03-08 21:30:25 -0700)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to d9c50de7c1d95e5c173ac6d7f5b3f0d63131f8b4:

t/io_uring: memset() allocated memory (2019-03-11 10:46:47 -0600)

----------------------------------------------------------------
Keith Busch (1):
t/io_uring: memset() allocated memory

 t/io_uring.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

---

Diff of recent changes:

t/io_uring.c +2 -1
index 36aede9b..363cba3e 100644
@@ -526,7 +526,8 @@ int main(int argc, char *argv[])
 		}
 	}
 
-	submitter = malloc(sizeof(*submitter) * depth * sizeof(struct iovec));
+	submitter = malloc(sizeof(*submitter) + depth * sizeof(struct iovec));
+	memset(submitter, 0, sizeof(*submitter) + depth * sizeof(struct iovec));
 	s = submitter;
 
 	flags = O_RDONLY | O_NOATIME;