]> git.ipfire.org Git - thirdparty/gcc.git/commit - libiberty/ChangeLog
Fix memory allocation size overflows (PR69687, patch by Marcel Böhme)
authorMarcel Böhme <boehme.marcel@gmail.com>
Fri, 8 Apr 2016 12:10:21 +0000 (12:10 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 8 Apr 2016 12:10:21 +0000 (12:10 +0000)
commitbdf66f7734daf0d2a8f53eb5a1a94a94a28246fc
treecfa89c5025da2434c49ea375c858dac4c4e7233d
parent59dad006fa31fe3355defcd6b38ab70fd7d2737f
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
libiberty/ChangeLog
libiberty/cplus-dem.c