Skip to content

Encoding is unsound #40

@purplesyringa

Description

@purplesyringa

This library does not verify that image.len() >= width * height * channels before passing data to WebPPictureImportRGB(A), resulting in segfault on this example:

fn main() {
    webp::Encoder::from_rgb(&[], 16383, 16383).encode_lossless();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions