9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: presotto@plan9.bell-labs.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] a bug in freopen
Date: Mon,  5 Aug 2002 22:38:11 -0400	[thread overview]
Message-ID: <80ce6d908233d7814aadd0b75c098154@plan9.bell-labs.com> (raw)

[-- 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

             reply	other threads:[~2002-08-06  2:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-06  2:38 presotto [this message]
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
  -- 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-05 12:29 presotto
2002-08-05  9:55 Saroj Mahapatra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80ce6d908233d7814aadd0b75c098154@plan9.bell-labs.com \
    --to=presotto@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).