[ET Trac] [Einstein Toolkit] #818: Fix allocation of array for 4D arrays in IOASCII
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Thu Apr 19 21:56:44 CDT 2012
#818: Fix allocation of array for 4D arrays in IOASCII
--------------------+-------------------------------------------------------
Reporter: knarf | Owner:
Type: defect | Status: new
Priority: minor | Milestone: ET_2012_05
Component: Cactus | Version: development version
Keywords: |
--------------------+-------------------------------------------------------
(At least) one place in IOASCII assumes maxdim<=3 by only allocating 3
entries of an array but then writing maxdim entries. The thorn TestArrays
tests 4D arrays in its testsuite and while this seems to work on 64bit
machines, it gives a segfault on 32bit machines (plus valgrind complaining
loudly). Allocating maxdim entries (like also done elsewhere in the file)
solves this problem, as indicated in the attached patch.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/818>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list