]> git.ipfire.org Git - thirdparty/shadow.git/commit
Replace flawed memset_s usage
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 24 Jan 2023 14:39:41 +0000 (15:39 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Wed, 25 Jan 2023 10:07:25 +0000 (11:07 +0100)
commit90ead3cfb8fff90f53f3dbab387e9de66b617872
tree556c762f0fa36f752cda5fcfd11e6892e4adab5b
parentb2bed465e81e52e8a1ce29c94c2590099c63ff76
Replace flawed memset_s usage

memset_s() has a different signature than memset(3) or explicit_bzero(),
thus the current code would not compile.  Also memset_s()
implementations are quite rare.
Use the C23 standardized version memset_explicit(3).

Fixes: 7a799ebb ("Ensure memory cleaning")
configure.ac
lib/defines.h