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

[metadata_update] Fix bounds check error #49328

Merged
1 commit merged into from
Mar 9, 2021

Commits on Mar 8, 2021

  1. [metadata_update] Fix bounds check error

    The issue is that the STANDALONESIG bounds check was using a 0-based index, and
    mono_metadata_bounds_check_slow was compensating by adding 1.
    
    But that made another call to the bounds check fail: in
    mono_class_from_typeref_checked we passed a 1-based index.  So in the case
    where a TypeRef was using the last AssemblyRef in a delta, the bound check
    would fail.
    
    Fixes dotnet#49227
    
    Co-authored-by: Ryan Lucia <ryan@luciaonline.net>
    lambdageek and CoffeeFlux committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    dde1bb3 View commit details
    Browse the repository at this point in the history