projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix memory overflow bugs
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index f0aa5e3b01375c4f1eb395e1b2e77bd8565501e4..93322fdcc266bf065153f576b7e8204b7da3035d 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-564,8
+564,12
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
}
string = malloc(4096);
}
string = malloc(4096);
- name = malloc(256);
- memset(name, 0, 256);
+
+ /*
+ * it's really 256 + small bit, 280 should suffice
+ */
+ name = malloc(280);
+ memset(name, 0, 280);
stonewall = stonewall_flag;
do {
stonewall = stonewall_flag;
do {