This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/20137] aligned_alloc should fail for bad size / alignment [DR#460]


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]