commit | 08c5dc5abebf2e1bd6a676ae539a8303e034c27b | [log] [tgz] |
---|---|---|
author | Mandeep Singh Baines <msb@chromium.org> | Fri Mar 25 15:15:21 2011 -0700 |
committer | Mandeep Singh Baines <msb@chromium.org> | Fri Mar 25 15:15:21 2011 -0700 |
tree | e56601b6592bbb9d0c33ba4373d25ea8c2a3aad3 | |
parent | b691323ea45161542bebc4661de27a30b6703f31 [diff] |
verity: fix valgrind warnings in OddLeafCount We don't clear the end bits (non-hash) of the last block. This results in uninitialized bits being factored into the root hash. This causes test flakiness. Fix by memset all leaf blocks after allocation. BUG=none TEST=Ran OddLeafCount with valgrind. Change-Id: I626f1ab386a67d0da8dcaff40d25245bfc747994 R=taysom@chromium.org,wad@chromium.org Review URL: http://codereview.chromium.org/6726045