Date: Mon, 29 May 1995 14:50:00 -0700 From: phk@FreeBSD.org To: freebsd-bugs Subject: bin/457: possible csh bug Message-ID: <199505292150.OAA08521@freefall.cdrom.com> In-Reply-To: Your message of Mon, 29 May 1995 14:41:41 -0700 <199505292141.OAA03621@critter.tfs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>Number: 457 >Category: bin >Synopsis: We may have an obscure csh bug >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 29 14:50:00 1995 >Originator: Poul-Henning Kamp >Organization: >Release: FreeBSD BUILT-19950423 i386 >Environment: unknown >Description: /usr/bin/csh sometimes corrupts its own address space [[ malloc()ed memory ]] when the argument to the built-in cd command ends in a slash. Such corruption happens to the first slash in malloc()ed memory that follows the NULL-terminating byte of the directory-name if-and-only-if there is no NULL-byte between the directory-name NULL-terminator and the slash. This bug becomes evident to the users when the value of an environment variable which contains the slash character becomes truncated at the slash. This very old bug was inherited from BSD-csh and it exist in all BSD-based versions of the csh. >How-To-Repeat: Unknown >Fix: Unknown >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505292150.OAA08521>