Skip to content

Panic during recovery #273

@nazar-pc

Description

@nazar-pc

I do not have exact inputs, but overall the number of panics I was getting from this library is concerning, there is too many .unwrap()s without proofs.

Here is one that user caught:

Dec 06 07:10:36 alpha bash[111042]: thread 'tokio-runtime-worker' panicked at /root/.cargo/git/checkouts/rust-kzg-b3b2ba43d312a1eb/6c8fcc6/blst/src/recovery.rs:106:79:
Dec 06 07:10:36 alpha bash[111042]: called `Result::unwrap()` on an `Err` value: "A list with power-of-two length expected"

Consider replacing countless .unwrap() with .expect() that have proofs and add fuzzing to catch panics like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions