Tobias Stoeckmann 63a96706b1 Handle malformed lines in hushlogins file.
If a line in hushlogins file, e.g. /etc/hushlogins, starts with
'\0', then current code performs an out of boundary write.
If the line lacks a newline at the end, then another character is
overridden.

With strcspn both cases are solved.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2021-10-29 19:50:38 +02:00
..
2021-06-24 09:18:35 +02:00
2021-08-18 18:06:02 +00:00
2011-09-18 21:02:43 +00:00
2020-01-12 07:31:26 -06:00
2021-06-24 09:18:35 +02:00
2021-08-18 18:06:02 +00:00
2021-06-16 09:50:53 +02:00
2017-10-22 18:33:13 +00:00
2017-10-22 19:17:02 +00:00
2021-08-18 18:06:02 +00:00
2021-04-16 21:02:37 -05:00
2021-09-13 15:11:40 +00:00
2021-07-14 12:13:25 +02:00
2021-08-18 18:06:02 +00:00
2021-08-18 18:06:02 +00:00
2021-06-24 09:18:35 +02:00
2021-02-01 22:11:10 +01:00
2017-10-22 18:33:13 +00:00
2013-08-04 15:56:32 +02:00
2021-06-24 09:18:35 +02:00
2021-06-16 09:50:53 +02:00