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. From-SVN: r234829
Showing
Please
register
or
sign in
to comment