[ET Trac] [Einstein Toolkit] #837: valgrind error in Parameters.c
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Sun Apr 29 21:38:29 CDT 2012
#837: valgrind error in Parameters.c
----------------------+-----------------------------------------------------
Reporter: eschnett | Owner:
Type: defect | Status: new
Priority: blocker | Milestone:
Component: Cactus | Version:
Keywords: |
----------------------+-----------------------------------------------------
These lines in Cactus/src/main/Parameters.c (line 2298 ff) are flagged by
valgrind:
{{{
inval = strtod (temp, &endptr);
free(temp);
if (*endptr) /* if we cannot parse as a number, try expression */
}}}
Note that endptr is set to a location in the string temp that is freed
before endptr is accessed.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/837>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list