Community
Participate
Working Groups
in org.eclipse.cdt.debug.edc.tests, resources/Projects/SimpleCpp/inc/Templates.h contains a Template function that has an uninitialized member that can cause a calculation which results in attempting to allocate a *very* large chunk of heap, and will result in a reported HEAP allocation failure. this probably hasn't been seen previously, because if the memory associated with that variable is 0 (as is probably often the case) or even just small, the failure wouldn't occur, and any testing using this resource would succed. the attached Templates.h.patch initializes the variable that leads to this problem.
Created attachment 176079 [details] initializes variable that leads to HEAP allocation failure
Committed patch to HEAD,
*** cdt cvs genie on behalf of kryall *** Bug 322042 - uninitialized template member in edc JUnit resource Templates.h can cause HEAP allocation failure [*] Templates.h 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.tests/resources/Projects/SimpleCpp/inc/Templates.h?root=Tools_Project&r1=1.1&r2=1.2