Skip to content
Snippets Groups Projects
  • Corey Farrell's avatar
    d855658f
    app_macro: Prevent infinite loop in find_matching_priority. · d855658f
    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
    d855658f
    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