This is the mail archive of the gcc-bugs@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]

[Bug preprocessor/60436] [4.8/4.9/5 Regression] C preprocessor segfaults on assembly file


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34089
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34089&action=edit
gcc5-pr60436.patch

Untested fix.  For add_map we have code to handle this.  But if add_map is
false too many times, we can still overflow.  This patch forces add_map to true
if highest is too high.


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