Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack overflow panic in reverse entry check when inbox ends with wildcard #3862

Merged
merged 1 commit into from Feb 13, 2023

Conversation

neilalexander
Copy link
Member

In the case that the reverse entries also contain wildcards then this leads to infinite recursion. By breaking out the function to accept a parameter to tell us whether or not we have recursed, we can detect this condition and give up.

Signed-off-by: Neil Twigg neil@nats.io

/cc @nats-io/core

Copy link
Member

@aricart aricart left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander
Copy link
Member Author

@derekcollison Would you like this on dev or main? It might go nicely in a patch release.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM - I think main branch here.

@neilalexander neilalexander changed the base branch from dev to main February 13, 2023 09:46
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@neilalexander neilalexander merged commit f3fa39c into main Feb 13, 2023
@neilalexander neilalexander deleted the neil/accountstackoverflow branch February 13, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants