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 potential underrun with annotation merging #54917

Merged
merged 1 commit into from
Jul 22, 2024

Commits on Jun 24, 2024

  1. Fix potential underrun with annotation merging

    As raised in JuliaLang#54860, when writing to an AnnotatedIOBuffer, should the
    new content have more annotations than the AnnotatedIOBuffer, we may
    attempt to index non-existent annotations.
    
    This bug occurs in the process of looking for runs of matched
    annotations. Since it is impossible for a run to be longer than the
    number of existing annotations, we can add this as a sanity check and
    not bother trying to check for run lengths where this is not the case.
    
    Reported-by: caleb-allen <caleb.e.allen@gmail.com>
    tecosaur committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    1ea7030 View commit details
    Browse the repository at this point in the history