[Pkg-openssl-devel] Bug#534892: libssl0.9.8: err_fns_check() has a race if a pointer assignment is not atomic

Russell Coker russell at coker.com.au
Sat Jun 27 23:51:36 UTC 2009


Package: libssl0.9.8
Version: 0.9.8g-15+lenny1
Severity: normal

static void err_fns_check(void)
        {
        if (err_fns) return;

        CRYPTO_w_lock(CRYPTO_LOCK_ERR);
        if (!err_fns)
                err_fns = &err_defaults;
        CRYPTO_w_unlock(CRYPTO_LOCK_ERR);
        }

Helgrind flags the above function as an error due to there being no lock on
the first check of err_fns.





More information about the Pkg-openssl-devel mailing list