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: patching maps failed when using number keys #1025

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

schummar
Copy link
Contributor

@schummar schummar commented Mar 22, 2023

This broke because of the mitigation for CVE-2020-28477

The solution should restore the behavior for maps with number key, while not bringing back the vulnerability.

Repro: https://stackblitz.com/edit/node-isqvrw?file=package.json
Fixes #952

@coveralls
Copy link

coveralls commented Mar 23, 2023

Pull Request Test Coverage Report for Build 4491669675

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 98.289%

Totals Coverage Status
Change from base Build 4025598618: 0.007%
Covered Lines: 792
Relevant Lines: 803

💛 - Coveralls

@mweststrate mweststrate merged commit dd83e2e into immerjs:main Mar 23, 2023
@mweststrate
Copy link
Collaborator

Thanks for submitting this PR! Landing

@github-actions
Copy link
Contributor

🎉 This PR is included in version 9.0.20 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Cannot apply patch, path doesn't resolve' when modifying property of an object in Map
3 participants