]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFP4 (108673, 110519, 110874):
authornetchild <netchild@FreeBSD.org>
Sat, 2 Dec 2006 14:56:25 +0000 (14:56 +0000)
committernetchild <netchild@FreeBSD.org>
Sat, 2 Dec 2006 14:56:25 +0000 (14:56 +0000)
commit2db40ccfce7ea070a08fa10f3969ee21f4d49779
tree12cfdac707eb1c777faf6a99820a9d9176a76fdc
parent1cfd0ae28fc82197d5129459391224f42bc78cd5
MFP4 (108673, 110519, 110874):
- Currently LINUX_MAX_COMM_LEN is smaller than MAXCOMLEN, but in case
  this will change we have a buffer overflow. Apply some defensive
  programming to DTRT when this should happen.
- Use copyinstr() instead of copyin where appropriate.
  * Fallback to copyin() in case of ENAMETOOLONG. [1]
  * Use the right source and destination (it was wrong before).
- Use strlcpy instead of strcpy.
- Properly lock the read case (PR_GET_NAME) like the write case.

Reviewed by: rwatson (except [1])
Suggested by: rwatson [1]
sys/compat/linux/linux_misc.c