Skip to content

Unconditionally use explicit_bzero(3)#1566

Open
alejandro-colomar wants to merge 2 commits into
shadow-maint:masterfrom
alejandro-colomar:memset_explicit
Open

Unconditionally use explicit_bzero(3)#1566
alejandro-colomar wants to merge 2 commits into
shadow-maint:masterfrom
alejandro-colomar:memset_explicit

Conversation

@alejandro-colomar

@alejandro-colomar alejandro-colomar commented Mar 7, 2026

Copy link
Copy Markdown
Collaborator

All systems we care about have explicit_bzero(3), and most don't have memset_explicit() at all.


Revisions:

v1b
  • Rebase
$ git rd 
1:  165359fd6ec2 ! 1:  2b26dd2b14a6 configure.ac, lib/: Don't use memset_explicit()
    @@ configure.ac: AC_CHECK_FUNCS([arc4random_buf \
        updwtmpx innetgr \
        getspnam_r \
        rpmatch \
    --  memset_explicit explicit_bzero stpecpy stpeprintf])
    -+  explicit_bzero stpecpy stpeprintf])
    +-  memset_explicit explicit_bzero stpecpy seprintf])
    ++  explicit_bzero stpecpy seprintf])
      AC_SYS_LARGEFILE
      
      dnl Checks for typedefs, structures, and compiler characteristics.
2:  e819ba044760 ! 2:  12807d5138ce configure.ac, lib/: Unconditionally use explicit_bzero(3)
    @@ configure.ac: AC_CHECK_FUNCS([arc4random_buf \
        updwtmpx innetgr \
        getspnam_r \
        rpmatch \
    --  explicit_bzero stpecpy stpeprintf])
    -+  stpecpy stpeprintf])
    +-  explicit_bzero stpecpy seprintf])
    ++  stpecpy seprintf])
      AC_SYS_LARGEFILE
      
      dnl Checks for typedefs, structures, and compiler characteristics.

All systems we care about have explicit_bzero(3), and most don't have
memset_explicit() at all.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
All systems we care about have explicit_bzero(3).

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant