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

Running fuzz_x509v3 fuzz results in failure #73

Closed
xiaoyuxlu opened this issue Apr 8, 2024 · 2 comments
Closed

Running fuzz_x509v3 fuzz results in failure #73

xiaoyuxlu opened this issue Apr 8, 2024 · 2 comments
Assignees

Comments

@xiaoyuxlu
Copy link
Collaborator

xiaoyuxlu commented Apr 8, 2024

Steps:

cd spdmlib
cargo fuzz run fuzz_x509v3

Failing input:

    fuzz/artifacts/fuzz_x509v3/crash-2093d7a2fd00e65e814ac99fdfc72153d0542330                                     

Output of std::fmt::Debug:

    [48, 0, 48, 0, 160, 3, 2, 1, 2, 8, 0, 48, 6, 6, 6, 6, 32, 38, 0, 48, 0, 48, 0, 48, 0, 48, 32, 48, 4, 48, 50, 4

8, 0, 48, 0, 160, 3, 2, 1, 2, 8, 0, 48, 6, 6, 6, 6, 32, 38, 0, 48, 0, 48, 0, 0, 0, 0, 0, 0, 0, 4, 6, 3, 85, 29, 15, 4,
0]

Error:
thread '' panicked at fuzz_targets/../../src/crypto/x509v3.rs:408:24:
index out of bounds: the len is 9 but the index is 9

@xiaoyuxlu
Copy link
Collaborator Author

It looks similar to #71

@xiaoyuxlu
Copy link
Collaborator Author

Fixed by: #72

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

No branches or pull requests

2 participants