------- Comment #25 from tromey at gcc dot gnu dot org  2006-12-29 07:58 -------
FWIW I've been looking at this area for PR 29966.
I don't see how overflow checking could be added to
_cpp_lex_direct.  However I did end up adding an
assertion to _cpp_lex_token, to try to expose a hidden
assumption:

      if (pfile->cur_token < pfile->cur_run->base
          || pfile->cur_token >= pfile->cur_run->limit)
        abort ();

I also looked at the other assignments to cur_token
and (aside from the one fixed in my forthcoming patch)
they all look ok.

So, I think this PR can be closed.
Please reopen if you think I've done this in error.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

Reply via email to