[asterisk-bugs] [JIRA] (ASTERISK-25304) res_pjsip: XML sanitization may write past buffer

Joshua Colp (JIRA) noreply at issues.asterisk.org
Wed Aug 5 06:03:33 CDT 2015


Joshua Colp created ASTERISK-25304:
--------------------------------------

             Summary: res_pjsip: XML sanitization may write past buffer
                 Key: ASTERISK-25304
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25304
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_pjsip
    Affects Versions: 13.4.0
            Reporter: Joshua Colp


The ast_sip_sanitize_xml function currently uses the strncat function incorrectly. The length provided to it may cause it to write past the provided output buffer into other memory. This can cause a crash. The crash may result from the writing or because the PJSIP library expects the value to be NULL terminated when it is not.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list