This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r193174 - in /trunk/libstdc++-v3: ChangeLog lib...
- From: fw at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Mon, 05 Nov 2012 17:48:47 -0000
- Subject: r193174 - in /trunk/libstdc++-v3: ChangeLog lib...
Author: fw
Date: Mon Nov 5 17:48:46 2012
New Revision: 193174
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193174
Log:
Detect overflow in size calculations in __cxa_vec_new{2,3}
2012-11-03 Florian Weimer <fweimer@redhat.com>
* libsupc++/vec.cc (compute_size): New.
(__cxa_vec_new2, __cxa_vec_new3): Use it.
* testsuite/18_support/cxa_vec.cc: New.
Added:
trunk/libstdc++-v3/testsuite/18_support/cxa_vec.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/libsupc++/vec.cc