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

[HotFix][RegistryPreview]Fix out of bonds array access error #28803

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

After #28488, Registry preview does some escape character checks. On this code there's an iterator increment that doesn't recheck for bounds, so this was causing a out of bonds exception for some files, like the one presented in the issue.

PR Checklist

Validation Steps Performed

Opened the file indicated as crashing in the issue and verified it no longer crashes Registry Preview.

@jaimecbernardo jaimecbernardo added the Hot Fix Items we will product an out-of-band release for label Sep 27, 2023
@jaimecbernardo jaimecbernardo merged commit 59fb08c into microsoft:main Sep 27, 2023
7 checks passed
Copy link
Collaborator

@randyrants randyrants left a comment

Choose a reason for hiding this comment

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

LGTM

@dillydylann
Copy link
Contributor

I actually didn't catch this until after the PR was merged. Seems to be an intermittent bug (at least for me), because it worked fine when opening the file but when trying to edit it crashed. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hot Fix Items we will product an out-of-band release for
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants