Skip to content
Snippets Groups Projects
  • Kevin Harwell's avatar
    4308aa56
    core uri: Custom uri parsing error when no query parameters · 4308aa56
    Kevin Harwell authored
    If using the custom URI parsing code (not external uriparser lib) and there
    was no query parameters the resulting pointer would be NULL and then an
    attempt was made to subtract from it.  The pointer is now set to a valid
    value if there is no query parameter(s).
    
    Also, in the 'ast_uri_make_host_with_port' function when setting the terminator
    on the resulting string it was writing it one past the end of allocated memory.
    It now writes the string terminator appropriately.
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415358 65c4cc65-6c06-0410-ace0-fbb531ad65f3
    4308aa56
    History
    core uri: Custom uri parsing error when no query parameters
    Kevin Harwell authored
    If using the custom URI parsing code (not external uriparser lib) and there
    was no query parameters the resulting pointer would be NULL and then an
    attempt was made to subtract from it.  The pointer is now set to a valid
    value if there is no query parameter(s).
    
    Also, in the 'ast_uri_make_host_with_port' function when setting the terminator
    on the resulting string it was writing it one past the end of allocated memory.
    It now writes the string terminator appropriately.
    
    
    git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415358 65c4cc65-6c06-0410-ace0-fbb531ad65f3