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

Change MutateString to apply LLVMFuzzerMutate to a vector. #212

Closed
wants to merge 1 commit into from

Conversation

Allen-Webb
Copy link
Contributor

Previously LLVMFuzzerMutate was applied to a &(std::string)[0] which is supposed to be contiguous in C++11, but was leading to memory sanitizer errors. Replacing &(std::string)[0] with (std::vector).data() eliminates the memory sanitizer errors and allows the fuzzers to continue.

Previously LLVMFuzzerMutate was applied to a &(std::string)[0] which is
supposed to be contiguous in C++11, but was leading to memory sanitizer
errors. Replacing &(std::string)[0] with (std::vector).data() eliminates
the memory sanitizer errors and allows the fuzzers to continue.
@Allen-Webb
Copy link
Contributor Author

Nevermind, this doesn't resolve the issue. I had a stale build which completely removed the call to LLVMFuzzerMutate. There might be an LLVM bug.

@Allen-Webb Allen-Webb closed this Oct 19, 2022
@Allen-Webb
Copy link
Contributor Author

#213 fixes the issue.

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.

None yet

1 participant