diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2016-01-26 21:26:12 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2016-01-26 21:26:12 (GMT) |
commit | 8bbdc947c4f92fc9b1711adc0b00337dae2ed666 (patch) | |
tree | 4f5f3edadeece803b46ed1c3a84f11a7d266e9ec /src/H5HFdblock.c | |
parent | 8aa7c27fb717f481d924ea5f7793b10f35c29947 (diff) | |
download | hdf5-8bbdc947c4f92fc9b1711adc0b00337dae2ed666.zip hdf5-8bbdc947c4f92fc9b1711adc0b00337dae2ed666.tar.gz hdf5-8bbdc947c4f92fc9b1711adc0b00337dae2ed666.tar.bz2 |
[svn-r28972] Removed option to clear file buffers from autotools, CMake, and library.
Buffers that will be written to disk will now always be cleared since
not doing this has huge security implications.
Tested on: 64-bit Ubuntu 15.10 (Linux 4.2.0, x86_64) gcc 5.2.1
serial autotools
parallel autotools (MPICH 3.1.4)
serial CMake
Diffstat (limited to 'src/H5HFdblock.c')
-rw-r--r-- | src/H5HFdblock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5HFdblock.c b/src/H5HFdblock.c index 73db840..1272ab0 100644 --- a/src/H5HFdblock.c +++ b/src/H5HFdblock.c @@ -146,9 +146,7 @@ H5HF_man_dblock_create(hid_t dxpl_id, H5HF_hdr_t *hdr, H5HF_indirect_t *par_iblo /* XXX: Change to using free-list factories */ if((dblock->blk = H5FL_BLK_MALLOC(direct_block, dblock->size)) == NULL) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") -#ifdef H5_CLEAR_MEMORY -HDmemset(dblock->blk, 0, dblock->size); -#endif /* H5_CLEAR_MEMORY */ + HDmemset(dblock->blk, 0, dblock->size); dblock->write_buf = NULL; dblock->write_size = 0; |