This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/20137] aligned_alloc should fail for bad size / alignment [DR#460]
- From: "msebor at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 26 May 2016 19:38:46 +0000
- Subject: [Bug malloc/20137] aligned_alloc should fail for bad size / alignment [DR#460]
- Auto-submitted: auto-generated
- References: <bug-20137-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20137
--- Comment #6 from Martin Sebor <msebor at redhat dot com> ---
I discussed the issue with Clark. He hadn't considered the flexible array use
case when working on N1397 and agrees that relaxing the size requirement
imposed in DR 460 would be useful and sees no technical problem with doing so.
I'll submit an issue to WG14 and propose to make this change (i.e., require
aligned_alloc to fail only when size < alignment). Clark is including a
suggestion in his upcoming D0035R3 to make a corresponding change to the C++
overaligned operator new (ironically, at the last WG21 meeting in Jacksonville
he was asked to make the same condition undefined in his updated proposal,
which is already reflected in D0035R2, the followup on the P0035R1 paper I
referred to in comment #5).
--
You are receiving this mail because:
You are on the CC list for the bug.