libstdc++: Fix overflow handling in std::align
authorGlen Joseph Fernandes <glenjofe@gmail.com>
Tue, 22 Sep 2020 16:49:48 +0000 (17:49 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 22 Sep 2020 16:49:48 +0000 (17:49 +0100)
commit15139af6fb9ce964c6002990d1458b7ced256271
treed6aaac89fcd68a903dd324110d4d613e53aaaa2c
parent7dfffe32419a963660f5c04b40b8f0becd509b69
libstdc++: Fix overflow handling in std::align

libstdc++-v3/ChangeLog:

* include/bits/align.h (align): Fix overflow handling.
* testsuite/20_util/align/3.cc: New test.
libstdc++-v3/include/bits/align.h
libstdc++-v3/testsuite/20_util/align/3.cc [new file with mode: 0644]