]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/ChangeLog
Make sure the return value of malloc_allocator::allocate is zero-initialized so...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sun, 16 Oct 2016 13:31:43 +0000 (16:31 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Sun, 16 Oct 2016 13:31:43 +0000 (16:31 +0300)
commitb08c2bc7bd54ccd43ab86bfb94c0858dd68353e1
treeb0a3b3cdc95968a2a11fa2c578ebe45b81008632
parent9937c1eb7288216e4b59303389d64ff1125516f0
Make sure the return value of malloc_allocator::allocate is zero-initialized so...

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.

From-SVN: r241212
libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/malloc_allocator.h
libstdc++-v3/testsuite/ext/malloc_allocator/sanity.cc [new file with mode: 0644]