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

--- Comment #12 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Author: bernds
Date: Fri Apr  8 12:10:21 2016
New Revision: 234829

URL: https://gcc.gnu.org/viewcvs?rev=234829&root=gcc&view=rev
Log:
Fix memory allocation size overflows (PR69687, patch by Marcel Böhme)

        PR c++/69687
        * cplus-dem.c: Include <limits.h> if available.
        (INT_MAX): Define if necessary.
        (remember_type, remember_Ktype, register_Btype, string_need):
        Abort if we detect cases where we the size of the allocation would
        overflow.


Modified:
    trunk/libiberty/ChangeLog
    trunk/libiberty/cplus-dem.c

Reply via email to