]> git.ipfire.org Git - thirdparty/glibc.git/commit
crypt: Remove invalid end of page test badsalttest
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 27 Feb 2023 12:34:07 +0000 (09:34 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Feb 2023 14:30:55 +0000 (11:30 -0300)
commit675bdaeeca74a28c269b05417e15fb49aa24cc1d
treeb348cc05c70db856c44027d96b4046fbda4d98ee
parent3862773e1efba89ac7da43be80e64140b073c4e2
crypt: Remove invalid end of page test badsalttest

The input argument passes an invalid string without a NUL terminator
on crypt settings inputs, which might lead to invalid OOB on strncmp.

Implementations only assume there is a NUL terminator if the string is
shorter than the specified size, so strings don't need to always be NUL
terminated (stratcliff.c has tests for this).

Also adapt the code to use libsupport.

Checked on arm-linux-gnuabihf.
crypt/badsalttest.c