cvs commit: src/sys/checkpt support.c src/sys/kern vfs_cache.c src/sys/sys kern_syscall.h

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jun 5 09:34:28 PDT 2004


dillon      2004/06/05 09:34:07 PDT

DragonFly src repository

  Modified files:
    sys/checkpt          support.c 
    sys/kern             vfs_cache.c 
    sys/sys              kern_syscall.h 
  Log:
  Rearrange the kern_getcwd() procedure to return the base of the string
  rather then relocating the string.
  
  Also fix two bugs: (1) the original bcopy was copying data beyond the end of
  the buffer ([bp, bp+buflen] exceeds the buffer), and (2), the uap->buflen
  checks must be made in __getcwd(), before the kernel tries to malloc() space.
  
  Revision  Changes    Path
  1.4       +7 -3      src/sys/checkpt/support.c
  1.23      +31 -21    src/sys/kern/vfs_cache.c
  1.18      +1 -1      src/sys/sys/kern_syscall.h


http://www.dragonflybsd.org/cvsweb/src/sys/checkpt/support.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cache.c.diff?r1=1.22&r2=1.23&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/kern_syscall.h.diff?r1=1.17&r2=1.18&f=u





More information about the Commits mailing list