Skip to content

AcessViolationException from MemoryPackReader.ReadString #306

@jnyrup

Description

@jnyrup

Given this model

[MemoryPackable]
public partial class DefaultValue
{
    public string? StringValue { get; set; }
}

The following input triggers an AccessViolationException in MemoryPackReader.ReadString().

var input = new byte[] { 1, 0, 0, 0, 128 };
MemoryPackSerializer.Deserialize<DefaultValue>(input);

Found with SharpFuzz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions