Article View: net.bugs.usg
Article #231Re: Yet ANOTHER null pointer dereference problem (in "cat")
From: Tony L. Hansen
Date: Fri, 04 Oct 1985 03:33
Date: Fri, 04 Oct 1985 03:33
26 lines
1524 bytes
1524 bytes
The zero deference bug still exists in my Vr2 code. Does anyone think that
for Vr3 they'll turn on the loader option to disallow zero deferences?
Tony Hansen
ihnp4!pegasus!hansen
*** /tmp/cat.c Thu Oct 3 12:42:57 1985
--- /tmp/cat.c.new Thu Oct 3 21:30:24 1985
***************
*** 79,85
}
for (argv = &argv[optind];
optind < argc && !ferror(stdout); optind++, argv++) {
! if ((*argv)[0]=='-' && (*argv)[1]=='\0' || stdinflg)
fi = stdin;
else {
if ((fi = fopen(*argv, "r")) == NULL) {
--- 79,85 -----
}
for (argv = &argv[optind];
optind < argc && !ferror(stdout); optind++, argv++) {
! if (stdinflg || ((*argv)[0]=='-' && (*argv)[1]=='\0'))
fi = stdin;
else {
if ((fi = fopen(*argv, "r")) == NULL) {
Technical Details
Message-ID:
<2620@pegasus.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!pegasus!hansenReferences:
<2826@sun.uucp>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site pegasus.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!mtuxo!pegasus!hansen From: hansen@pegasus.UUCP (Tony L. Hansen) Newsgroups: net.bugs.usg Subject: Re: Yet ANOTHER null pointer dereference problem (in "cat") Message-ID: <2620@pegasus.UUCP> Date: Thu, 3-Oct-85 23:33:21 EDT Article-I.D.: pegasus.2620 Posted: Thu Oct 3 23:33:21 1985 Date-Received: Sat, 5-Oct-85 02:20:47 EDT References: <2826@sun.uucp> Reply-To: hansen@pegasus.UUCP (60545451-Tony L. Hansen;LZ 3B-315;6243) Distribution: net Organization: AT&T Information Systems, Lincroft NJ Lines: 28 Summary: still exists in Vr2