missing memset_explicit()

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Wed Jun 4 17:38:32 GMT 2025



On 04/06/25 14:29, enh wrote:
> i see glibc added explicit_bzero() in 2.25, but it seems like c23's
> memset_explicit() is still missing?
> 
> (memset_explicit() is relatively new to bionic, but we're starting to
> see more demand so i added polyfill to bionic's headers today.)

Indeed, we are still adding the missing bits for c23 (like Joseph's
math contributions for the missing math implementations).  

I think we can implement this like explicit_bzero, where it would be
memset call plus the compiler barrier.


More information about the Libc-alpha mailing list