projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7437ee8
)
[PATCH] Fix memswp. Its scratch space was too small
author
Shawn Lewis
<shawnlewis@google.com>
Thu, 2 Aug 2007 20:17:52 +0000
(22:17 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 2 Aug 2007 20:17:52 +0000
(22:17 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
verify.c
patch
|
blob
|
blame
|
history
diff --git
a/verify.c
b/verify.c
index d9a68d656e490ca2d9a3e0b6a76777895e08f045..6f67dffa6898692f8359abb98a6ddc93f07f3db3 100644
(file)
--- a/
verify.c
+++ b/
verify.c
@@
-83,7
+83,9
@@
static void fill_pattern(struct thread_data *td, void *p, unsigned int len)
static void memswp(void* buf1, void* buf2, unsigned int len)
{
- struct verify_header swap;
+ char swap[200];
+
+ assert(len <= sizeof(swap));
memcpy(&swap, buf1, len);
memcpy(buf1, buf2, len);