Skip to content

fuzz printf#5556

Merged
sylvestre merged 3 commits intouutils:mainfrom
sylvestre:fuzz-printf
Nov 21, 2023
Merged

fuzz printf#5556
sylvestre merged 3 commits intouutils:mainfrom
sylvestre:fuzz-printf

Conversation

@sylvestre
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 :)

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
@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