Skip to content

Commit 8a1ac10

Browse files
Merge branch 'rust-fuzz:master' into master
2 parents 8817675 + dd35346 commit 8a1ac10

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

.rgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cargo-afl/AFLplusplus

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
## 0.15.24
4+
5+
- [Update AFLplusplus to 4.34c](https://github.com/rust-fuzz/afl.rs/pull/660)
6+
37
## 0.15.23
48

59
- Internal refactor. The changes should not be noticeable to end users. If you experience breakage, please open an [issue](https://github.com/rust-fuzz/afl.rs/issues).

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

afl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "afl"
3-
version = "0.15.23"
3+
version = "0.15.24"
44
readme = "README.md"
55
license = "Apache-2.0"
66
authors = [

cargo-afl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-afl"
3-
version = "0.15.23"
3+
version = "0.15.24"
44
readme = "README.md"
55
license = "Apache-2.0"
66
authors = [

cargo-afl/src/common.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ use std::env;
55
use std::ffi::OsStr;
66
use std::path::{Path, PathBuf};
77

8+
pub const OBJECT_FILE_NAME: &str = "afl-compiler-rt.o";
9+
810
fn xdg_base_dir() -> xdg::BaseDirectories {
911
xdg::BaseDirectories::with_prefix("afl.rs")
1012
}
@@ -52,7 +54,7 @@ pub fn afl_llvm_dir() -> Result<PathBuf> {
5254
}
5355

5456
pub fn object_file_path() -> Result<PathBuf> {
55-
afl_llvm_dir().map(|path| path.join("libafl-llvm-rt.o"))
57+
afl_llvm_dir().map(|path| path.join(OBJECT_FILE_NAME))
5658
}
5759

5860
pub fn plugins_available() -> Result<bool> {

cargo-afl/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ fn build_afl(args: &Args, work_dir: &Path) -> Result<()> {
125125

126126
fn build_afl_llvm_runtime(_args: &Args, work_dir: &Path) -> Result<()> {
127127
let object_file_path = common::object_file_path()?;
128-
let _: u64 = std::fs::copy(work_dir.join("afl-compiler-rt.o"), &object_file_path)
128+
let _: u64 = std::fs::copy(work_dir.join(common::OBJECT_FILE_NAME), &object_file_path)
129129
.with_context(|| "could not copy object file")?;
130130

131131
Ok(())

0 commit comments

Comments
 (0)