Date: Sat, 26 Jul 1997 10:50:34 -0400 (EDT) From: Harlan Stenn <Harlan.Stenn@pfcs.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/4170: fencepost error in more... Message-ID: <199707261450.KAA25203@brown.pfcs.com> Resent-Message-ID: <199707261500.IAA02806@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4170 >Category: bin >Synopsis: fencepost error in more... >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 26 08:00:02 PDT 1997 >Last-Modified: >Originator: Harlan Stenn >Organization: >Release: FreeBSD 2.2-STABLE i386 >Environment: >Description: more/main.c writes data past the end of an array. Check out the code fragment after getenv("MORE"). >How-To-Repeat: Inspection. >Fix: --- usr.bin/more/main.c- Wed May 7 01:24:36 1997 +++ usr.bin/more/main.c Sat Jul 26 10:14:43 1997 @@ -252,7 +252,7 @@ char **argv; { int envargc, argcnt; - char *envargv[2]; + char *envargv[3]; (void) setlocale(LC_ALL, ""); >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707261450.KAA25203>