[asterisk-bugs] [JIRA] (ASTERISK-21736) [patch] __ast_rwlock_destroy can segfault with DEBUG_THREADS

Rusty Newton (JIRA) noreply at issues.asterisk.org
Mon Apr 29 19:51:40 CDT 2013


Rusty Newton created ASTERISK-21736:
---------------------------------------

             Summary: [patch] __ast_rwlock_destroy can segfault with DEBUG_THREADS
                 Key: ASTERISK-21736
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21736
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/General
    Affects Versions: SVN, 1.8.22.0, 11.4.0
         Environment: DEBUG_THREADS enabled
            Reporter: Corey Farrell
            Severity: Minor


__ast_rwlock_destroy doesn't check if t->track is NULL before using it.  This causes a segfault if the rwlock was initialized by value with tracking, then never used.

I've marked this minor since I'm not aware any place in asterisk where this crash can happen.  I found this while testing other changes and starting asterisk with no modules.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list