projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f64668
)
verify: check that the block size is big enough
author
Jens Axboe
<axboe@kernel.dk>
Tue, 24 Sep 2019 08:43:39 +0000
(
02:43
-0600)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 24 Sep 2019 08:43:39 +0000
(
02:43
-0600)
Fixes: https://github.com/axboe/fio/issues/822
Signed-off-by: Jens Axboe <axboe@kernel.dk>
verify.c
patch
|
blob
|
blame
|
history
diff --git
a/verify.c
b/verify.c
index 48ba051da3ad2acca982b3da03f50f51aa5881fd..37d2be8dd9403c6a2bede3c61079214abe971cac 100644
(file)
--- a/
verify.c
+++ b/
verify.c
@@
-1191,6
+1191,10
@@
static void populate_hdr(struct thread_data *td, struct io_u *io_u,
fill_hdr(td, io_u, hdr, header_num, header_len, io_u->rand_seed);
+ if (header_len <= hdr_size(td, hdr)) {
+ td_verror(td, EINVAL, "Blocksize too small");
+ return;
+ }
data_len = header_len - hdr_size(td, hdr);
data = p + hdr_size(td, hdr);