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

[BugFix]: fix to catch panic when parsing inner portion of a string #426

Merged
merged 2 commits into from Nov 30, 2023

Conversation

joshfried-aws
Copy link
Contributor

Issue #, if available:
N/A

Description of changes:
Running the guard fuzzer i discovered a bug similar to one we had in the parse_inner_regex function in parser.rs last year. The solution here is the same, we check if our remainder is empty while we are still looping if it is we return an error.

Test case has been added to verify the fix


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws joshfried-aws changed the title [BugFix]: fix to catch panic when parseing inner portion of a string [BugFix]: fix to catch panic when parsing inner portion of a string Nov 30, 2023
@joshfried-aws joshfried-aws merged commit 05f4793 into aws-cloudformation:main Nov 30, 2023
8 checks passed
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