besser82 / libxcrypt

Extended crypt library for descrypt, md5crypt, bcrypt, and others
GNU Lesser General Public License v2.1
189 stars 52 forks source link

restore ucontext api functionality check #157

Closed yu-re-ka closed 1 year ago

yu-re-ka commented 2 years ago

In c3f01c72b303cbbb0cc8983120677edee2f3fa4b the use of the ucontext api in the main program was removed, and with it the configure check for it. However, the ucontext api is still used in the "explicit_bzero" test and this has the same problem as described in the comment:

The ucontext.h functions that we use were withdrawn from POSIX.1-2008, so the existence of the header does not prove we can use the functions.

Thus, restore the full configure check and use it instead of the header check for the explicit_bzero test.

See https://bugs.gentoo.org/838172

besser82 commented 1 year ago

Fixed in https://github.com/besser82/libxcrypt/commit/13435fdc1b8c704fd46b0a9027791db0134bd77b.