Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pbx_variables.c: Prevent SEGV due to stack overflow.#481

Merged
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-480
Mar 22, 2024
Merged

pbx_variables.c: Prevent SEGV due to stack overflow.#481
asterisk-org-access-app[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-480

Conversation

@InterLinked1

Copy link
Copy Markdown
Contributor

It is possible for dialplan to result in an infinite recursion of variable substitution, which eventually leads to stack overflow. If we detect this, abort
substitution and log an error for the user to fix
the broken dialplan.

Resolves: #480

@InterLinked1

InterLinked1 commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

cherry-pick-to: 20
cherry-pick-to: 21

Comment thread main/pbx_variables.c
It is possible for dialplan to result in an infinite
recursion of variable substitution, which eventually
leads to stack overflow. If we detect this, abort
substitution and log an error for the user to fix
the broken dialplan.

Resolves: asterisk#480

UpgradeNote: The maximum amount of dialplan recursion
using variable substitution (such as by using EVAL_EXTEN)
is capped at 15.
@asteriskteam

Copy link
Copy Markdown
Contributor

This PR has been marked stale because it has been in "Changes Requested" or "submitter-action-required" state for 28 days or more. Please make the requested changes within 14 days or the PR will be closed.

@gtjoseph gtjoseph added cherry-pick-test Trigger dry run of cherry-picks and removed stale labels Mar 21, 2024
@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-failed Cherry-Pick checks failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Mar 21, 2024

@gtjoseph gtjoseph left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't cherry pick to 18 so the PR will need to be split.

@InterLinked1

Copy link
Copy Markdown
Contributor Author

Doesn't cherry pick to 18 so the PR will need to be split.

Done, linked PR: #663

@InterLinked1 InterLinked1 removed their assignment Mar 21, 2024
@InterLinked1 InterLinked1 requested a review from gtjoseph March 21, 2024 15:27
@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Mar 21, 2024
@github-actions github-actions Bot removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-checks-failed Cherry-Pick checks failed labels Mar 21, 2024
@github-actions

Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["20","21"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[improvement]: pbx_variables.c: Prevent infinite recursion and stack overflow with variable expansion

3 participants