Date: Wed, 14 Sep 2005 20:35:46 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getcwd.c Message-ID: <200509142035.j8EKZk71089700@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@tlb.org> Revision Changes Path 1.26 +4 -4 src/lib/libc/gen/getcwd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509142035.j8EKZk71089700>