projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce18290
)
Verify: Tighten header length check in verify_header()
author
Andreas Gruenbacher
<agruen@linbit.com>
Thu, 26 Jun 2014 17:25:30 +0000
(19:25 +0200)
committer
Andreas Gruenbacher
<agruen@linbit.com>
Thu, 26 Jun 2014 17:30:16 +0000
(19:30 +0200)
Fix-up to commit
5964842c
: Tighten the header length check as well, don't only
change the message.
verify.c
patch
|
blob
|
blame
|
history
diff --git
a/verify.c
b/verify.c
index 184f3a7f821b52487557b352e3b2f201a475905c..261570127c5b21cf8cc6797877d997102c58a1cf 100644
(file)
--- a/
verify.c
+++ b/
verify.c
@@
-720,7
+720,7
@@
static int verify_header(struct io_u *io_u, struct verify_header *hdr,
hdr->magic, FIO_HDR_MAGIC);
goto err;
}
- if (hdr->len
> io_u->buf
len) {
+ if (hdr->len
!= hdr_
len) {
log_err("verify: bad header length %u, wanted %u",
hdr->len, hdr_len);
goto err;