Skip to content

Off by one in PrefixingBufferWriter.GetSpan #9830

@willseward

Description

@willseward

https://github.com/dotnet/orleans/blob/86db32b40f3e5585267123a4704edad34df8b40b/src/Orleans.Core/Messaging/PrefixingBufferWriter.cs#L128C17-L128C55

There is technically an off-by-one error when the remaining buffer size is equal to the sizeHint. I don't think this code path is even referenced, but it's worth knowing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions