[Bug 20503] New: ref counting bug in crypt32

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Oct 28 11:45:30 CDT 2009


           Summary: ref counting bug in crypt32
           Product: Wine
           Version: 1.1.32
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: crypt32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: juan_lang at yahoo.com

Created an attachment (id=24412)
 --> (http://bugs.winehq.org/attachment.cgi?id=24412)
Show presence of ref counting bug

crypt32 uses ref counting to keep track of certificates, CRLs, and CTLs.  The
ref counting isn't done correctly, which can be seen by running
'WINEDEBUG=crypt make store.ok' in the tests.  Looking through the output
you'll find instances where the ref count becomes negative.

I'm attaching a patch which adds an assert that the ref count is positive
before decrementing it.  Applying the patch and running 'make store.ok'
produces an assertion failure:
context.c:150: Context_Release: Assertion `base->ref > 0' failed.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list