Skip to content
Snippets Groups Projects
  • Naveen Albert's avatar
    3108457d
    chan_sip: Fix crash when accessing RURI before initiating outgoing call · 3108457d
    Naveen Albert authored
    Attempting to access ${CHANNEL(ruri)} in a pre-dial handler before
    initiating an outgoing call will cause Asterisk to crash. This is
    because a null field is accessed, resulting in an offset from null and
    subsequent memory access violation.
    
    Since RURI is not guaranteed to exist, we now check if the base
    pointer is non-null before calculating an offset.
    
    ASTERISK-29772
    
    Change-Id: Icd3b02f07256bbe6615854af5717074087b95a83
    3108457d
    History
    chan_sip: Fix crash when accessing RURI before initiating outgoing call
    Naveen Albert authored
    Attempting to access ${CHANNEL(ruri)} in a pre-dial handler before
    initiating an outgoing call will cause Asterisk to crash. This is
    because a null field is accessed, resulting in an offset from null and
    subsequent memory access violation.
    
    Since RURI is not guaranteed to exist, we now check if the base
    pointer is non-null before calculating an offset.
    
    ASTERISK-29772
    
    Change-Id: Icd3b02f07256bbe6615854af5717074087b95a83