From: Josef Bacik Date: Tue, 9 Jul 2013 00:35:01 +0000 (-0400) Subject: Init buflen for our dummy buffer X-Git-Tag: fio-2.1.2~63 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=0d81daf9d164c4bf829f4911e1f7b211c2e661fb Init buflen for our dummy buffer If we fail to verify our buffer we will allocate a dummy buf to fill in so we have something to compare our bad file to. Unfortunately we don't set the buflen of the dummy buffer which means we will sometimes write well past the end of our buffer and this make glibc complain loudly. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index b3cd402d..9e88d615 100644 --- a/verify.c +++ b/verify.c @@ -273,6 +273,7 @@ static void dump_verify_buffers(struct verify_header *hdr, struct vcont *vc) dummy.buf = buf; dummy.rand_seed = hdr->rand_seed; dummy.buf_filled_len = 0; + dummy.buflen = io_u->buflen; fill_pattern_headers(td, &dummy, hdr->rand_seed, 1);