Skip to content
Snippets Groups Projects
  • Corey Farrell's avatar
    5dffdf79
    app_macro: Prevent infinite loop in find_matching_priority. · 5dffdf79
    Corey Farrell authored
    Use AST_PBX_MAX_STACK to escape if we recurse 128 times.  This will
    prevent crash if dialplan contains an include loop.  Log an error when
    this occurs, at most one message per call to Macro() so we avoid logger
    spam.
    
    ASTERISK-26570 #close
    
    Change-Id: I6c71b76998c31434391b150de055ae9a531e31da
    5dffdf79
    History
    app_macro: Prevent infinite loop in find_matching_priority.
    Corey Farrell authored
    Use AST_PBX_MAX_STACK to escape if we recurse 128 times.  This will
    prevent crash if dialplan contains an include loop.  Log an error when
    this occurs, at most one message per call to Macro() so we avoid logger
    spam.
    
    ASTERISK-26570 #close
    
    Change-Id: I6c71b76998c31434391b150de055ae9a531e31da