shadow/libmisc
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
..
.indent.pro
addgrps.c Fix covscan RESOURCE_LEAK 2021-06-24 09:18:35 +02:00
age.c
audit_help.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
basename.c
btrfs.c silence compiler warnings 2020-01-12 07:31:26 -06:00
chkname.c chkname.c, pwck.c, useradd.c, usermod.c, newusers.c: Allow names that do not conform to standards 2019-10-04 18:40:41 -05:00
chkname.h
chowndir.c
chowntty.c Fix covscan RESOURCE_LEAK 2021-06-24 09:18:35 +02:00
cleanup_group.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
cleanup_user.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
cleanup.c
console.c Fix some issues found in Coverity scan. 2018-10-10 12:22:04 +02:00
copydir.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
entry.c
env.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
failure.c Fix covscan BUFFER_SIZE 2021-06-16 09:50:53 +02:00
failure.h
find_new_gid.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
find_new_sub_gids.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
find_new_sub_uids.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
find_new_uid.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
getdate.h
getdate.y
getgr_nam_gid.c
getrange.c
gettime.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
hushed.c Handle malformed lines in hushlogins file. 2021-10-29 19:50:38 +02:00
idmapping.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
idmapping.h subids: support nsswitch 2021-04-16 21:02:37 -05:00
isexpired.c
limits.c fix spelling 2021-09-13 15:11:40 +00:00
list.c libmisc: don't free members variable 2021-07-14 12:13:25 +02:00
log.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
loginprompt.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
mail.c
Makefile.am Fix out of tree builds with respect to libsubid includes 2021-07-23 17:51:13 -05:00
motd.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
myname.c Fix covscan RESOURCE_LEAK 2021-06-24 09:18:35 +02:00
obscure.c Add yescrypt support 2021-02-01 22:11:10 +01:00
pam_pass_non_interactive.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
pam_pass.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
prefix_flag.c fix spelling and unify whitespace 2021-08-18 18:06:02 +00:00
pwd2spwd.c Make the sp_lstchg shadow field reproducible (re. #71) 2019-03-31 16:00:01 +01:00
pwd_init.c
pwdcheck.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
remove_tree.c
rlogin.c
root_flag.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
salt.c libmisc: fix default value in SHA_get_salt_rounds() 2021-08-14 13:43:26 -04:00
setugid.c
setupenv.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
shell.c
strtoday.c
sub.c
sulog.c
ttytype.c
tz.c
ulimit.c
user_busy.c Fix covscan RESOURCE_LEAK 2021-06-24 09:18:35 +02:00
utmp.c Fix covscan BUFFER_SIZE 2021-06-16 09:50:53 +02:00
valid.c
xgetgrgid.c
xgetgrnam.c
xgetpwnam.c
xgetpwuid.c
xgetspnam.c
xgetXXbyYY.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
xmalloc.c libsubid: don't print error messages on stderr by default 2021-05-15 12:38:55 -05:00
yesno.c