[PATCH] More out-of-bounds array accesses
Richard Guenther
rguenther@suse.de
Fri Aug 27 12:40:00 GMT 2010
On Fri, 27 Aug 2010, Paolo Carlini wrote:
> Hi,
> > ...
> >
> > There are appearantly also some here (but I'm not 100% sure)
> >
> > FAIL: 25_algorithms/heap/1.cc execution test
> >
> I had a quick look to this: I replaced every C array with a std::vector
> of the same size (+ mechanically replaced, say, s1, with s1.begin()),
> and built the testcase with -D_GLIBCXX_DEBUG. No errors at run time.
> Thus, I'm pretty confident that should be ok.
Another way to check would be to replace the local stack arrays
with heap allocated memory and run the testcase through valgrind.
Richard.
More information about the Gcc-patches
mailing list