9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: G. David Butler gdb@dbSystems.com
Subject: [9fans] Re: Bug in sysrendezvous?
Date: Tue, 16 Sep 1997 14:00:25 -0500	[thread overview]
Message-ID: <19970916190025.d5kAXoktND2gGjdWsEhi7IjFr9PrxKeOFFj2swMi0OQ@z> (raw)

From: "G. David Butler" <gdb@dbSystems.com>
>From: Amos Shapir <amos@cs.huji.ac.il>
>Date: 	Mon, 3 Jun 1996 09:59:36 -0400
>>
>>The "tag" operand of rendezvous is defined as ulong; but in the
>>function sysrendezvous (in sysproc.c), it's copied into an int, which
>>is used as an index in a table by the REND macro.  If I'm mistaken
>>correctly, this means that if the tag is negative, the resulting
>>pointer would point *outside* the table!
>>

[snip]

>#define REND(p,s) ((p)->rendhash[(ulong)(s)%RENDHASH])

Well, I jumped the gun here.  The fix was posted long ago with
a declaration change in sysrendezvous() to a ulong.

Sorry for the rehash :-).




             reply	other threads:[~1997-09-16 19:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-16 19:00 G.David [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-09-16 18:39 G.David
1997-09-16 16:39 forsyth

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=19970916190025.d5kAXoktND2gGjdWsEhi7IjFr9PrxKeOFFj2swMi0OQ@z \
    --to=9fans@9fans.net \
    /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).