This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bounds checking for TREE_VEC_ELT and related bugs (PR c++/8511)


Mark Mitchell <mark@codesourcery.com> writes:

>> This *should* resolve PR c++/8511; however, I am not certain of the
>> fix to that part of the code (the changes to cp/pt.c).  I would
>> appreciate a once-over by C++ maintainers.
>
> All of the changes *except* that one are OK.
>
> I need to figure out what's going on in that case; I'm thinking that if
> we get here with an invalid index, we've got some other problem somewhere
> else that wants fixing.
>
> I will look into that later today.

A test case that gets there with an invalid index is 
http://gcc.gnu.org/ml/gcc-bugs/2002-11/msg00525/spline.ii.gz

I would not be surprised if the real bug is elsewhere -- changing
apparently unrelated code makes the problem vanish.

In view of Gabriel's comments I'm going to hold off committing the
rest of it a while.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]