Skip to content

Commit

Permalink
[HotFix][RegistryPreview]Fix out of bonds array access error (microso…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo authored Sep 27, 2023
1 parent 1f86eef commit 59fb08c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ private bool ParseRegistryFile(string filenameText)
i++;
}

if (value[i - 1] != '\\' && value[i] == '"')
if (i < value.Length && value[i - 1] != '\\' && value[i] == '"')
{
// Don't allow non-escaped quotes
registryValue.Type = "ERROR";
Expand Down

0 comments on commit 59fb08c

Please sign in to comment.