missing memset_explicit()
Sam James
sam@gentoo.org
Wed Jun 4 19:31:01 GMT 2025
Cristian Rodríguez <cristian@rodriguez.im> writes:
> On Wed, Jun 4, 2025 at 1:39 PM Adhemerval Zanella Netto
> <adhemerval.zanella@linaro.org> wrote:
>>
>>
>>
>> On 04/06/25 14:29, enh wrote:
>
>> I think we can implement this like explicit_bzero, where it would be
>> memset call plus the compiler barrier.
>
> Shouldn't this be a compiler builtin that the compiler promises
> *never* to remove or reorder under any circumstances?
I think something explicit on the compiler side would be nice, I was
wondering this when looking into exactly this topic as someone asked me
about it last week. But copying explicit_bzero for now is I think fine.
More information about the Libc-alpha
mailing list