diff options
author | Christopher Ferris <cferris@google.com> | 2013-05-02 14:08:31 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2013-05-02 15:23:10 -0700 |
commit | 76469ff2a0894eb2c3aa03976d5525f91bbf52ba (patch) | |
tree | a01bbb7889acb133083f8fc12dbcff5149727f8d /libc_test | |
parent | d519cfaa64b4cbefaa8735abcaa20fae11adf941 (diff) | |
download | extras-76469ff2a0894eb2c3aa03976d5525f91bbf52ba.tar.gz |
Fix hard-coded fencepost value.
Merge from internal master.
(cherry-picked from commit 1685d00d0a6b905a820a76c9686b6b4b077dfe4a)
Change-Id: Ie9d64844c28ea720091acfefc21f888827fecb4b
Diffstat (limited to 'libc_test')
-rw-r--r-- | libc_test/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc_test/main.cpp b/libc_test/main.cpp index 8a5315b8..8b012b67 100644 --- a/libc_test/main.cpp +++ b/libc_test/main.cpp @@ -447,7 +447,7 @@ bool runMemcpyTest(void* (*test_memcpy)(void *dst, const void *src, size_t n), // Don't add a pre fencepost if we are using the value from the malloc. if (dst_align != dst) { - setFencepost(&dst_align[-FENCEPOST_LENGTH]); + setFencepost(&dst_align[-8]); } setFencepost(&dst_align[len]); @@ -545,7 +545,7 @@ bool runMemsetTest(void* (*test_memset)(void *s, int c, size_t n), // Don't add a pre fencepost if we are using the value from the malloc. if (buf_align != buf) { - setFencepost(&buf_align[-FENCEPOST_LENGTH]); + setFencepost(&buf_align[-8]); } setFencepost(&buf_align[len]); |