Date: Sun, 22 May 2011 12:12:28 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh main.c Message-ID: <201105221212.p4MCCexj085975@repoman.freebsd.org>
index | next in thread | raw e-mail
jilles 2011-05-22 12:12:28 UTC
FreeBSD src repository
Modified files:
bin/sh main.c
Log:
SVN rev 222173 on 2011-05-22 12:12:28Z by jilles
sh: Fix bss-based buffer overflow in . builtin.
If the length of a directory in PATH together with the given filename
exceeded FILENAME_MAX (which may happen even for pathnames that work), a
static buffer was overflown.
The static buffer is unnecessary, we can use the stalloc() stack.
Obtained from: NetBSD
MFC after: 1 week
Revision Changes Path
1.48 +7 -4 src/bin/sh/main.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105221212.p4MCCexj085975>
