projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
options: fix buffer overrun
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 0b4c48d618150562c78c1af364f72121bbb15b7a..955bf959e49c3ff2a8c1c9912786f45b833b346c 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-1672,6
+1672,7
@@
struct fio_option fio_options[FIO_MAX_OPTS] = {
.lname = "Filename(s)",
.type = FIO_OPT_STR_STORE,
.off1 = offsetof(struct thread_options, filename),
+ .maxlen = PATH_MAX,
.cb = str_filename_cb,
.prio = -1, /* must come after "directory" */
.help = "File(s) to use for the workload",