]> 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>
Wed, 3 Aug 2022 11:30:01 +0000 (12:30 +0100)
commit2ef2de76dae5cac14e0de77ca7205e43be03ab22
treec432a77988cf6b58804efeb437bfa8d5869e9650
parent8a57deb926cd660c2eae7ed621d61a301ae0d523
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.

(cherry picked from commit 0a9af7b4ef1b8aa85cc8820acf54d41d1569fc10)
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/testsuite/20_util/allocator/105975.cc [new file with mode: 0644]
This page took 0.056789 seconds and 5 git commands to generate.