Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tests that cause decoding to panic #1

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

0xalpharush
Copy link
Contributor

---- test_c stdout ----
thread 'test_c' panicked at /Users/x/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bytes-1.8.0/src/lib.rs:138:5:
advance out of bounds: the len is 10 but advancing by 16

---- test_a stdout ----
thread 'test_a' panicked at sszb_derive/tests/tests.rs:31:28:
mid > len
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- test_b stdout ----
thread 'test_b' panicked at sszb_derive/tests/tests.rs:31:28:
attempt to subtract with overflow

@ghiliweld
Copy link
Owner

good looks, thanks for flagging @0xalpharush!

@ghiliweld ghiliweld merged commit 00b16db into ghiliweld:main Oct 23, 2024
@0xalpharush 0xalpharush deleted the panicking-tests branch October 23, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants