r234829 - in /trunk/libiberty: ChangeLog cplus-...
bernds@gcc.gnu.org
bernds@gcc.gnu.org
Fri Apr 8 12:10:00 GMT 2016
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
More information about the Gcc-cvs
mailing list