Skip to content

VersionReq may panic .Found by afl.rs #227

@StevenJiang1110

Description

@StevenJiang1110

I've using afl.rs to fuzz this crate. And I found a panic issue in VersionReq. The code to replay the issue is

let _ = semver::VersionReq::parse("80000000000000000000");

And from the panic reportn, it seems that this panic is caused by use unwrap on a Result which may return err.
截屏2021-01-09 下午9 56 44
I hope you can check if this is a bug need to be fixed. Thanks a lot.

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