Commit 15e87b6d authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5842 fix uninitialized write


git-svn-id: file:///svn/toku/tokudb@52268 c7de825b-a66e-492c-adef-691d508d4ae1
parent 42eedd1f
......@@ -30,6 +30,7 @@ int test_main(int argc, char *const argv[]) {
int fd = open(fname, O_RDWR | O_CREAT | O_BINARY, S_IRWXU|S_IRWXG|S_IRWXO);
assert(fd>=0);
char *XMALLOC_N_ALIGNED(512, 512, buf);
memset(buf, 512, 0);
strcpy(buf, "hello");
int64_t offset = (1LL<<32) + 512;
toku_os_full_pwrite(fd, buf, 512, offset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment