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

fuzz printf #5556

Merged
merged 3 commits into from
Nov 21, 2023
Merged

fuzz printf #5556

merged 3 commits into from
Nov 21, 2023

Conversation

sylvestre
Copy link
Sponsor Contributor

No description provided.

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

fn generate_printf() -> String {
let mut rng = rand::thread_rng();
let format_specifiers = ["%s", "%d", "%f", "%x", "%o", "%c", "%b", "%q"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the format specifiers. For example, https://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Table-of-Output-Conversions.html lists many more.

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it is just to start :)

Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/tail/truncate is no longer failing!
GNU test failed: tests/tail/retry. tests/tail/retry is passing on 'main'. Maybe you have to rebase?

Copy link
Contributor

@cakebaker cakebaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks fine to me for a first version, though I'm not sure whether we should merge it yet as @tertsdiepraam works on a rewrite of printf.

@sylvestre
Copy link
Sponsor Contributor Author

It doesn't matter because it is testing the binaries, it doesn't rely on internal :)

@uutils uutils deleted a comment from github-actions bot Nov 21, 2023
@sylvestre sylvestre merged commit a0ac3dd into uutils:main Nov 21, 2023
50 of 53 checks passed
@sylvestre sylvestre deleted the fuzz-printf branch December 4, 2023 20:19
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.

2 participants