9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] a bug in freopen
@ 2002-08-05 12:29 presotto
  0 siblings, 0 replies; 10+ messages in thread
From: presotto @ 2002-08-05 12:29 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 48 bytes --]

I'll fix it.  It is really crappy code.  Thanks.

[-- Attachment #2: Type: message/rfc822, Size: 1649 bytes --]

From: Saroj Mahapatra <saroj@optonline.net>
To: 9fans@cse.psu.edu
Subject: [9fans] a bug in freopen
Date: Mon, 5 Aug 2002 09:55:49 GMT
Message-ID: <6d3220b4.0208031631.2e8fd04e@posting.google.com>

There is a bug in freopen in that it checks mode[1] and mode[2]
without first checking if mode[0] is NULL char. So it may access
invalid memory location.

Thank you,
Saroj Mahapatra

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9fans] a bug in freopen
@ 2002-08-09 12:36 rob pike, esq.
  2002-08-09 17:18 ` Douglas A. Gwyn
  2002-08-10 16:14 ` Jim Choate
  0 siblings, 2 replies; 10+ messages in thread
From: rob pike, esq. @ 2002-08-09 12:36 UTC (permalink / raw)
  To: 9fans

> It can be safely assumed that any really large software product
> contains bugs, period.  One might as well set up a procedure to
> deal with them..  As to security flaws, there are numerous
> contributing factors.

Are you sure?

-rob



^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [9fans] a bug in freopen
@ 2002-08-06  2:38 presotto
  2002-08-07 16:52 ` Jack Johnson
  0 siblings, 1 reply; 10+ messages in thread
From: presotto @ 2002-08-06  2:38 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 92 bytes --]

Rewritten and tested to my usual standards, i.e., it compiles
and my one test didn't abort.

[-- Attachment #2: Type: message/rfc822, Size: 3204 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 48 bytes --]

I'll fix it.  It is really crappy code.  Thanks.

[-- Attachment #2.1.2: Type: message/rfc822, Size: 1649 bytes --]

From: Saroj Mahapatra <saroj@optonline.net>
To: 9fans@cse.psu.edu
Subject: [9fans] a bug in freopen
Date: Mon, 5 Aug 2002 09:55:49 GMT
Message-ID: <6d3220b4.0208031631.2e8fd04e@posting.google.com>

There is a bug in freopen in that it checks mode[1] and mode[2]
without first checking if mode[0] is NULL char. So it may access
invalid memory location.

Thank you,
Saroj Mahapatra

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [9fans] a bug in freopen
@ 2002-08-05  9:55 Saroj Mahapatra
  0 siblings, 0 replies; 10+ messages in thread
From: Saroj Mahapatra @ 2002-08-05  9:55 UTC (permalink / raw)
  To: 9fans

There is a bug in freopen in that it checks mode[1] and mode[2]
without first checking if mode[0] is NULL char. So it may access
invalid memory location.

Thank you,
Saroj Mahapatra


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-08-10 16:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-05 12:29 [9fans] a bug in freopen presotto
  -- strict thread matches above, loose matches on Subject: below --
2002-08-09 12:36 rob pike, esq.
2002-08-09 17:18 ` Douglas A. Gwyn
2002-08-10 16:14 ` Jim Choate
2002-08-06  2:38 presotto
2002-08-07 16:52 ` Jack Johnson
2002-08-08 15:39   ` Douglas A. Gwyn
2002-08-08 17:34     ` Jack Johnson
2002-08-09  8:57       ` Douglas A. Gwyn
2002-08-05  9:55 Saroj Mahapatra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).