Skip to content

No overflow protection for i32 as usize in this crate #45

Description

@namse

I found that some codes change i32 to usize without any overflow protection, like

let top_in_psd = idx / self.width() as usize + self.layer_properties.layer_top as usize;

I am facing the overflow error on my product.

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