Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 1 addition & 2 deletions .github/workflows/amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
run: |
sudo apt update && sudo apt install -y gdb pip curl python3-dev llvm \
openjdk-17-jdk ca-certificates gnupg lua5.4
# Atheris fails to install on Ubuntu 24.04, see https://github.com/google/atheris/issues/82
# pip3 install atheris
pip3 install atheris
pip3 install python-afl
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ env:
jobs:
ubuntu-latest:

# Atheris fails to install on Ubuntu 24.04, thus, this pipeline can test Atheris on 22.04
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand Down
24 changes: 2 additions & 22 deletions casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4248,10 +4248,6 @@ fn test_casr_libfuzzer() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_libfuzzer_atheris() {
if lsb_release::info().unwrap().version == "24.04" {
// Atheris fails to install, see https://github.com/google/atheris/issues/82
return;
}
use std::collections::HashMap;

let paths = [
Expand Down Expand Up @@ -4641,10 +4637,6 @@ fn test_casr_java_native_lib() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_python_atheris() {
if lsb_release::info().unwrap().version == "24.04" {
// Atheris fails to install, see https://github.com/google/atheris/issues/82
return;
}
// Division by zero atheris test
let paths = [
abs_path("tests/casr_tests/python/test_casr_python_atheris.py"),
Expand Down Expand Up @@ -4688,10 +4680,6 @@ fn test_casr_python_atheris() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_python_df() {
if lsb_release::info().unwrap().version == "24.04" {
// Atheris fails to install, see https://github.com/google/atheris/issues/82
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4774,7 +4762,7 @@ fn test_casr_san_python_df() {
.unwrap()
.to_string();

assert!(report["Stacktrace"].as_array().unwrap().iter().count() >= 19);
assert!(report["Stacktrace"].as_array().unwrap().iter().count() >= 15);
assert_eq!(severity_type, "NOT_EXPLOITABLE");
assert_eq!(severity_desc, "double-free");
assert!(
Expand All @@ -4792,10 +4780,6 @@ fn test_casr_san_python_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_atheris_df() {
if lsb_release::info().unwrap().version == "24.04" {
// Atheris fails to install, see https://github.com/google/atheris/issues/82
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4900,10 +4884,6 @@ fn test_casr_san_atheris_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_python_call_san_df() {
if lsb_release::info().unwrap().version == "24.04" {
// Atheris fails to install, see https://github.com/google/atheris/issues/82
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4991,7 +4971,7 @@ fn test_casr_python_call_san_df() {
.unwrap()
.to_string();

assert!(report["Stacktrace"].as_array().unwrap().iter().count() >= 19);
assert!(report["Stacktrace"].as_array().unwrap().iter().count() >= 15);
assert_eq!(severity_type, "NOT_EXPLOITABLE");
assert_eq!(severity_desc, "double-free");
assert!(
Expand Down
Loading