From owner-cvs-all Tue Feb 5 13:47:19 2002 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 3F6FE37B425; Tue, 5 Feb 2002 13:47:12 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g15Ll5V08625; Wed, 6 Feb 2002 00:47:05 +0300 (MSK) (envelope-from ache) Date: Wed, 6 Feb 2002 00:47:03 +0300 From: "Andrey A. Chernov" To: Mark Murray , des@freebsd.org Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/lib/libpam/modules/pam_unix pam_unix.c Message-ID: <20020205214703.GA8579@nagual.pp.ru> References: <20020205184059.GA6785@nagual.pp.ru> <200202051949.g15Jnhs12003@greenpeace.grondar.org> <20020205205907.GA8005@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020205205907.GA8005@nagual.pp.ru> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 05, 2002 at 23:59:08 +0300, Andrey A. Chernov wrote: > It is OK at this point, but broken _after_ PAM called. > Lets imagine srandom(33) produce this hypotetical sequence for random() > calls: To see the bug, run following test application with "call_pam" set to 1 and 0 #include int call_pam = 0; main() { srandom(33); random(); random(); if (call_pam) libpam_steals_N_randoms(); printf("%d\n", random()); } /* this is library code */ libpam_steals_N_randoms() { random(); random(); } -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message