Jilles Tjoelker c8a3d81f34 sh: Fix heap-based buffer overflow in pathname generation.
The buffer for generated pathnames could be too small in some cases. It
happened to be always at least PATH_MAX long, so there was never an overflow
if the resulting pathnames would be usable.

This bug may be abused if a script subjects input from an untrusted source
to pathname generation, which a bad idea anyhow. Most shell scripts do not
work on untrusted data. secteam@ says no advisory is necessary.

PR:		bin/148733
Reported by:	Changming Sun snnn119 at gmail com
MFC after:	10 days
2010-08-10 22:45:59 +00:00
..
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2010-03-06 16:57:53 +00:00
2010-03-06 16:57:53 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2010-05-28 22:40:24 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2010-06-02 19:16:58 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2010-06-02 19:16:58 +00:00
2010-06-02 19:16:58 +00:00