-
Notifications
You must be signed in to change notification settings - Fork 109
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 transitional message #348
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,6 @@ | ||
[package] | ||
name = "afl" | ||
version = "0.13.1" | ||
readme = "README.md" | ||
license = "Apache-2.0" | ||
authors = ["Keegan McAllister <[email protected]>", | ||
"Corey Farwell <[email protected]>"] | ||
description = "Fuzzing Rust code with american-fuzzy-lop" | ||
repository = "https://github.com/rust-fuzz/afl.rs" | ||
homepage = "https://github.com/rust-fuzz/afl.rs" | ||
edition = "2021" | ||
|
||
[build-dependencies] | ||
fs_extra = "1.3" | ||
home = "0.5" | ||
rustc_version = "0.4" | ||
tempfile = "3.6" | ||
xdg = "2.4" | ||
|
||
[dependencies] | ||
clap = { version = "4.3", features = ["cargo"] } | ||
lazy_static = { version = "1.4.0", optional = true } | ||
libc = "0.2.147" | ||
rustc_version = "0.4" | ||
xdg = "2.4" | ||
|
||
[dev-dependencies] | ||
arbitrary = { version = "1", features = ["derive"] } | ||
assert_cmd = "2.0" | ||
tempfile = "3.6" | ||
|
||
[features] | ||
reset_lazy_static = ["lazy_static"] | ||
no_cfg_fuzzing = [] | ||
[workspace] | ||
members = [ | ||
"afl", | ||
"cargo-afl", | ||
] | ||
resolver = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "afl" | ||
version = "0.13.1" | ||
readme = "../README.md" | ||
license = "Apache-2.0" | ||
authors = ["Keegan McAllister <[email protected]>", | ||
"Corey Farwell <[email protected]>"] | ||
description = "Fuzzing Rust code with american-fuzzy-lop" | ||
repository = "https://github.com/rust-fuzz/afl.rs" | ||
homepage = "https://github.com/rust-fuzz/afl.rs" | ||
edition = "2021" | ||
|
||
[build-dependencies] | ||
fs_extra = "1.3" | ||
home = "0.5" | ||
libc = "0.2" | ||
rustc_version = "0.4" | ||
tempfile = "3.6" | ||
xdg = "2.4" | ||
|
||
[dependencies] | ||
clap = { version = "4.3", features = ["cargo"] } | ||
lazy_static = { version = "1.4", optional = true } | ||
libc = "0.2" | ||
rustc_version = "0.4" | ||
xdg = "2.4" | ||
|
||
[dev-dependencies] | ||
arbitrary = { version = "1", features = ["derive"] } | ||
assert_cmd = "2.0" | ||
tempfile = "3.6" | ||
|
||
[features] | ||
reset_lazy_static = ["lazy_static"] | ||
no_cfg_fuzzing = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[package] | ||
name = "cargo-afl" | ||
version = "0.13.1" | ||
readme = "../README.md" | ||
license = "Apache-2.0" | ||
authors = ["Keegan McAllister <[email protected]>", | ||
"Corey Farwell <[email protected]>", | ||
"Samuel Moelius <[email protected]>"] | ||
description = "Fuzzing Rust code with american-fuzzy-lop" | ||
repository = "https://github.com/rust-fuzz/afl.rs" | ||
homepage = "https://github.com/rust-fuzz/afl.rs" | ||
edition = "2021" | ||
|
||
build = "../afl/build.rs" | ||
|
||
[[bin]] | ||
name = "cargo-afl" | ||
path = "../afl/src/bin/cargo-afl.rs" | ||
|
||
[build-dependencies] | ||
fs_extra = "1.3" | ||
home = "0.5" | ||
libc = "0.2" | ||
rustc_version = "0.4" | ||
tempfile = "3.6" | ||
xdg = "2.4" | ||
|
||
[dependencies] | ||
clap = { version = "4.3", features = ["cargo"] } | ||
libc = "0.2" | ||
rustc_version = "0.4" | ||
xdg = "2.4" | ||
|
||
[dev-dependencies] | ||
assert_cmd = "2.0" | ||
predicates = "3.0" | ||
tempfile = "3.6" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making sure I understand: this doesn't require an associated
flock(..., LOCK_UN)
because you're expecting the advisory lock to be dropped when the underlying fd is closed at process exit, right?I believe that should be fine, but it's not super well defined by POSIX AFAICT. Just something to be aware of should it cause unusual behavior on non-Linux builds in the future 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's correct.
I'm curious as to what makes you say that (not saying you're wrong).
I'm reading this: https://man7.org/linux/man-pages/man2/flock.2.html
Is file descriptor closure not well defined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought POSIX was ambiguous on whether process termination is actually required to close all FDs, but it looks like it's unambiguous:
(From https://pubs.opengroup.org/onlinepubs/007904875/functions/exit.html)
There's some subtlety around child processes that inherit the open FD, but I don't think that case matters here. So this is safe to ignore 🙂