[ET Trac] [Einstein Toolkit] #1423: CarpetIOHDF5 corrupts memory when readingi compressed grid structure strings
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Sun Aug 11 22:57:48 CDT 2013
#1423: CarpetIOHDF5 corrupts memory when readingi compressed grid structure
strings
--------------------+-------------------------------------------------------
Reporter: rhaas | Owner: eschnett
Type: defect | Status: new
Priority: major | Milestone:
Component: Carpet | Version: development version
Keywords: |
--------------------+-------------------------------------------------------
Input.cc uses H5Dget_storage_size to determine how much memory to allocate
for the large string attributes (Paramters and grid structure). However
this function literally returns the space used on disk which differs from
the space in memory when compression is used (or when the dataset is
sparse, or when the datatype on disk is different from that in memory eg
float vs double).
The attached patch instead queries the dataspace for the number of points.
Ok to apply? Is there a preferred way of getting this size othewise?
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1423>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list