projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix access-outside-array of o->rwmix[]
[fio.git]
/
thread_options.h
diff --git
a/thread_options.h
b/thread_options.h
index 3f345c56b3bafaca9eb5acd1210e58633fb63f86..484b16a56e7568dc42fd55847be967e469ae1070 100644
(file)
--- a/
thread_options.h
+++ b/
thread_options.h
@@
-157,7
+157,7
@@
struct thread_options {
#endif
unsigned int iolog;
unsigned int rwmixcycle;
#endif
unsigned int iolog;
unsigned int rwmixcycle;
- unsigned int rwmix[
2
];
+ unsigned int rwmix[
DDIR_RWDIR_CNT
];
unsigned int nice;
unsigned int ioprio;
unsigned int ioprio_class;
unsigned int nice;
unsigned int ioprio;
unsigned int ioprio_class;
@@
-362,7
+362,7
@@
struct thread_options_pack {
uint32_t verify_cpumask_set;
uint32_t iolog;
uint32_t rwmixcycle;
uint32_t verify_cpumask_set;
uint32_t iolog;
uint32_t rwmixcycle;
- uint32_t rwmix[
2
];
+ uint32_t rwmix[
DDIR_RWDIR_CNT
];
uint32_t nice;
uint32_t ioprio;
uint32_t ioprio_class;
uint32_t nice;
uint32_t ioprio;
uint32_t ioprio_class;