projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
client: fix potential buffer overrun in server name copy
[fio.git]
/
io_u.c
diff --git
a/io_u.c
b/io_u.c
index efbcea9eb15bb47dca4e0f802f85ad86197665de..23a9e4ada729efbc2a53bd9b3d4e12047be1d5c6 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-100,6
+100,8
@@
static int __get_next_rand_offset(struct thread_data *td, struct fio_file *f,
} else {
uint64_t off = 0;
+ assert(fio_file_lfsr(f));
+
if (lfsr_next(&f->lfsr, &off))
return 1;