]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Check for size overflow in constexpr allocation [PR105957]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Jun 2022 13:37:25 +0000 (14:37 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 14 Jun 2022 20:07:47 +0000 (21:07 +0100)
commit0a9af7b4ef1b8aa85cc8820acf54d41d1569fc10
tree8bf40c0d45908561bf164ca1224fd892a27fd4be
parent3e16b4359e86b36676ed01219e6deafa95f3c16b
libstdc++: Check for size overflow in constexpr allocation [PR105957]

libstdc++-v3/ChangeLog:

PR libstdc++/105957
* include/bits/allocator.h (allocator::allocate): Check for
overflow in constexpr allocation.
* testsuite/20_util/allocator/105975.cc: New test.
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/testsuite/20_util/allocator/105975.cc [new file with mode: 0644]
This page took 0.059821 seconds and 6 git commands to generate.