[PATCH] Fix overflow handling in std::align

Thomas Rodgers rodgert@appliantology.com
Mon Sep 14 21:44:49 GMT 2020



> On Sep 14, 2020, at 7:30 AM, Ville Voutilainen via Libstdc++ <libstdc++@gcc.gnu.org> wrote:
> 
> On Mon, 14 Sep 2020 at 15:49, Glen Fernandes <glen.fernandes@gmail.com> wrote:
>> 
>> On Mon, Sep 14, 2020 at 5:52 AM Ville Voutilainen wrote:
>>> On Mon, 14 Sep 2020 at 12:51, Ville Voutilainen
>>> wrote:
>>>> On Mon, 14 Sep 2020 at 09:18, Glen Fernandes
>>> wrote:
>>>>> Edit; Correct patch this time.
>>>>> 
>>>>> Fix overflow handling in align
>>>> 
>>>> Should the test verify that space is unmodified when nullptr is returned?
>>> 
>>> ..and same for ptr.
>> 
>> Sounds like a good idea. Updated patch attached.
> 
> Looks good to me.

Agree.


More information about the Libstdc++ mailing list