|
Message-ID: <3a40cb4b9b8b2eea05d000b12671ff7d@smtp.hushmail.com> Date: Wed, 27 Jun 2012 21:51:21 +0200 From: magnum <john.magnum@...hmail.com> To: john-dev@...ts.openwall.com Subject: Re: RAR cmp_one(3) failures On 2012-06-27 21:47, Solar Designer wrote: > On Wed, Jun 27, 2012 at 09:42:51PM +0200, magnum wrote: >> Oh. But the very first time it's called, we are in the self-test with a >> crypt_all(1), right? So there should only be one thread. > > No, we're in there with crypt_all(3), and we're running 4 threads. > This also explains why I was unable to trigger the bug with fewer than 4 > threads. > >> I'm extremely happy if we can kill this bug! > > Me too. Patch attached. > > Sorry for this counter-intuitive CRC32_Init() interface, which mimics > OpenSSL's thread-safe interfaces but actually is not... I actually knew > of this limitation many years ago when I wrote this code, but of course > I did not recall until I debugged it the hard way today. Cool, I'll omit the #pragma then, and apply this. I wasn't even aware we are using our own crc32 :) Thanks a lot! magnum
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.