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

Exercise all bpf instructions #552

Merged
merged 4 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
export RUSTFLAGS="-D warnings"
cargo build --verbose
cargo test --verbose
cargo test --test exercise_instructions --verbose
shell: bash
- name: CLI - Lint
run: |
Expand Down
4 changes: 3 additions & 1 deletion src/static_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ impl<'a> Analysis<'a> {
}
let mut result = Self {
// Removes the generic ContextObject which is safe because we are not going to execute the program
executable: unsafe { std::mem::transmute(executable) },
executable: unsafe {
std::mem::transmute::<&Executable<C>, &Executable<TestContextObject>>(executable)
},
instructions,
functions,
cfg_nodes: BTreeMap::new(),
Expand Down
Loading