http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47878

--- Comment #15 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-02-24 
16:03:41 UTC ---
Jakub's suggestion is probably OK.  I am not at a place where I can do and
test.
My only concern, is there a chance that we would backup passed the beginning of
the buffer?  Maybe make sure there is a check theat the final pointer returned
is greater than or equal to the original base.

So if it passes regression testing and fixes the original test case, consider
approved, but add a comment at the return point that mentions needed due to
buffer reallocation that may have occurred.

Reply via email to