Commit a6de8872 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

realloc must also be poisoned. Addresses #1032, #1343, #1328.

git-svn-id: file:///svn/toku/tokudb.1032b+1343@8458 c7de825b-a66e-492c-adef-691d508d4ae1
parent d0437515
......@@ -32,13 +32,13 @@ test_fifo_enq (int n) {
// this was a function but icc cant handle it
#define buildkey(len) { \
thekeylen = len; \
thekey = realloc(thekey, thekeylen); \
thekey = toku_realloc(thekey, thekeylen); \
memset(thekey, len, thekeylen); \
}
#define buildval(len) { \
thevallen = len+1; \
theval = realloc(theval, thevallen); \
theval = toku_realloc(theval, thevallen); \
memset(theval, ~len, thevallen); \
}
......
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