Skip to content

Variable size Config::Input causes crash in delta encoding #96

@caspark

Description

@caspark

If you define an Input type such as:

struct MyInput {
    v: Vec<u8>,
}

and the length of v varies from frame to frame, then the delta encoding in src/network/compression.rs panics due to the "all inputs must be the same size as the reference input" assertion.

Caused by my #82 PR, which enables using varying-size inputs - I didn't actually test with varying input sizes, whoops! I'm working on a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions