Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[llvm][cas] Implement basic fuzzer #10574

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

Closed
wants to merge 2 commits into from
Closed

Conversation

jansvoboda11
Copy link

@jansvoboda11 jansvoboda11 commented Apr 28, 2025

rdar://145672951

return 0;

SmallString<128> Path;
if (sys::fs::createUniqueDirectory("CAS", Path) != std::error_code())

Choose a reason for hiding this comment

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

This should probably get removed on exit (unless there's an error).

extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv) { return 0; }

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
static ExitOnError ExitOnErr("llvm-cas-fuzzer: ");

Choose a reason for hiding this comment

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

I suggest we use setBanner to update this string to capture the cas path once we have created the directory since most CAS diagnostics won't contain it themselves (usually it's clear which cas is in use from e.g. the options to the tool).

@jansvoboda11 jansvoboda11 requested a review from benlangmuir May 5, 2025 18:31
@jansvoboda11
Copy link
Author

Closed in favor of #10606.

@jansvoboda11 jansvoboda11 deleted the jan_svoboda/cas-fuzzing branch May 14, 2025 16:02
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