minix/kernel
Ben Gras f96645a4eb Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be
copied into was the same size as the source string - it will keep on
filling with zeroes forever. This was a signed/unsigned bug, fixed by
making the kstrncpy argument ssize_t instead of size_t. This bug was
triggered by Chris Young <teddga@earthlink.net>, by dazzling coincedence -
changing OS_VERSION into something with one more character (exactly the
same size as the buffer in the kinfo struct).

Also noticed that the kstrncpy() call didn't null-terminate the strings
if necessary, also fixed.
2005-07-13 14:46:11 +00:00
..
system get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
clock.c Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00
const.h Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00
debug.h Kernel cleanup. 2005-06-07 12:34:25 +00:00
exception.c Cleaned up process table structure: removed p_type, p_pendcount. 2005-06-24 16:24:40 +00:00
glo.h Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00
i8259.c * Fixed bug relating to nested locking in interrupt handlers. The nested lock 2005-06-17 09:09:54 +00:00
ipc.h Updated function key mapping because of possible changes to NOTIFY. 2005-06-20 14:23:31 +00:00
kernel.h Initial revision 2005-04-21 14:53:53 +00:00
klib.s Initial revision 2005-04-21 14:53:53 +00:00
klib88.s *** empty log message *** 2005-04-29 15:36:43 +00:00
klib386.s Import of dpeth 3c501/3c509b/.. ethernet driver by 2005-06-29 10:16:46 +00:00
klibc.c Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be 2005-07-13 14:46:11 +00:00
main.c Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00
Makefile get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
misc.c * Fixed bug relating to nested locking in interrupt handlers. The nested lock 2005-06-17 09:09:54 +00:00
mpx.s Initial revision 2005-04-21 14:53:53 +00:00
mpx88.s *** empty log message *** 2005-04-29 15:36:43 +00:00
mpx386.s Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00
proc.c get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
proc.h get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
protect.c Cleaned up process table structure: removed p_type, p_pendcount. 2005-06-24 16:24:40 +00:00
protect.h *** empty log message *** 2005-04-29 15:36:43 +00:00
proto.h Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be 2005-07-13 14:46:11 +00:00
sconst.h Initial revision 2005-04-21 14:53:53 +00:00
sendmask.h Cleaned up process table structure: removed p_type, p_pendcount. 2005-06-24 16:24:40 +00:00
start.c Fixed a bug in kstrncpy() that caused mayhem whenever the buffer to be 2005-07-13 14:46:11 +00:00
system.c A "fix" for bug no. 2 is to check if the process slot has disappeared. 2005-07-04 15:20:46 +00:00
system.h get/setpriority() and fsync() system calls 2005-07-01 18:01:33 +00:00
table.c kernel and servers send diagnostic messages to IS; IS sends them to TTY 2005-07-08 17:30:01 +00:00
type.h Rewrite of process scheduling: 2005-06-30 15:55:19 +00:00