cvs commit: src/lib/libc/gen getcwd.c

Andrey A. Chernov ache at FreeBSD.org
Wed Sep 14 13:35:47 PDT 2005


ache        2005-09-14 20:35:46 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         getcwd.c 
  Log:
  Remove any hardcoded assumptions about malloc's way of allocating,
  just use MAXPATHLEN. It prevents potential buffer overflow with other
  malloc implementations.
  (this change based on submitted patch)
  
  PR:             86135
  Submitted by:   Trevor Blackwell <tlb at tlb.org>
  
  Revision  Changes    Path
  1.26      +4 -4      src/lib/libc/gen/getcwd.c


More information about the cvs-src mailing list