|
Message-ID: <CAMAJcuDt6F2Rumoo=sqstWxjhVb9C9z9PS4ZPVaJN-rRb9O+5A@mail.gmail.com> Date: Wed, 28 Jan 2015 17:02:30 -0600 From: Josiah Worcester <josiahw@...il.com> To: musl@...ts.openwall.com Subject: Re: thoughts on reallocarray, explicit_bzero? On Wed, Jan 28, 2015 at 4:54 PM, Daniel Cegiełka <daniel.cegielka@...il.com> wrote: > 2015-01-28 23:38 GMT+01:00 Nathan McSween <nwmcsween@...il.com>: >> How can a compiler optimize out a memory barrier? > > The problem is not whether to do it or not, but in the fact that the > right solution is to use memset_s(). > > http://en.wikichip.org/wiki/c/c11#Bounds-checking_interfaces_annex_.28Annex_K.29 memset_s inherits the typical Annex K brain damage which makes it not at all library safe or sane to use, though.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.