[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: race condition in libports
From: |
Samuel Thibault |
Subject: |
Re: race condition in libports |
Date: |
Fri, 5 Jan 2018 23:54:49 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Brent W. Baccala, on ven. 05 janv. 2018 17:45:57 -0500, wrote:
error_t
fshelp_get_identity (struct port_bucket *bucket,
. . ino_t fileno,
. . mach_port_t *pt)
> if (!idclass)
> id_initialize ();
>
> - i = hurd_ihash_find (&idhash, (hurd_ihash_key_t) fileno);
> + i = hurd_ihash_find (&idhash, (hurd_ihash_key_t) &fileno);
That can't mean anything: fileno is a parameter, its adresse is
basically random.
Samuel