r241212 - in /trunk/libstdc++-v3: ChangeLog inc...
ville@gcc.gnu.org
ville@gcc.gnu.org
Sun Oct 16 13:31:00 GMT 2016
Author: ville
Date: Sun Oct 16 13:31:43 2016
New Revision: 241212
URL: https://gcc.gnu.org/viewcvs?rev=241212&root=gcc&view=rev
Log:
Make sure the return value of malloc_allocator::allocate
is zero-initialized so that checking it for non-zero works
later.
* include/ext/malloc_allocator.h (malloc_allocator::allocate):
Initialize the return value.
* testsuite/ext/malloc_allocator/sanity.cc: New.
Added:
trunk/libstdc++-v3/testsuite/ext/malloc_allocator/sanity.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/ext/malloc_allocator.h
More information about the Libstdc++-cvs
mailing list