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 more negative unmarshaling tests #576

Merged
merged 5 commits into from
Jan 25, 2024
Merged

Add more negative unmarshaling tests #576

merged 5 commits into from
Jan 25, 2024

Conversation

dthaler
Copy link
Contributor

@dthaler dthaler commented Jan 24, 2024

These are important to make sure validation fails on undefined instructions, to prevent such programs from being run and causing potentially unpredictable results.

The lists of opcodes were created by going through https://www.ietf.org/archive/id/draft-ietf-bpf-isa-00.html#name-appendix

@coveralls
Copy link

Coverage Status

coverage: 89.769% (+0.1%) from 89.662%
when pulling 4e9a253 on dthaler:negative
into 8b0c660 on vbpf:main.

@elazarg elazarg merged commit 47d78f4 into vbpf:main Jan 25, 2024
13 checks passed
@dthaler dthaler deleted the negative branch January 25, 2024 17:45
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.

3 participants