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

tools/oss-fuzz.sh doesn't seem to be working on systems where libFuzzer is a builtin sanitizer #10645

Closed
evverx opened this issue Nov 5, 2018 · 1 comment
Labels
bug 🐛 Programming errors, that need preferential fixing build-system

Comments

@evverx
Copy link
Member

evverx commented Nov 5, 2018

$ ./tools/oss-fuzz.sh
+ export LC_CTYPE=C.UTF-8
+ LC_CTYPE=C.UTF-8

Appending LDFLAGS from environment: '-L/usr/lib64/clang/6.0.1/lib/linux'
Native C++ compiler: clang++ (clang 6.0.1 "clang version 6.0.1 (tags/RELEASE_601/final)")

meson.build:299:8: ERROR:  C++ library 'Fuzzer' not found

I think it would make sense to try compiling something like

#include <stddef.h>
#include <stdint.h>

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
	return 0;
}

with -fsanitize=fuzzer to check whether clang is new enough to support that.

That's not critical as long as libFuzzer is built as a static library by the OSS-Fuzz project for, I presume, backwards compatibility, but it would certainly make the script a little bit more useful for people who, for some reason, want to build the fuzzers without the Docker machinery.

@evverx evverx added bug 🐛 Programming errors, that need preferential fixing build-system labels Nov 5, 2018
@evverx
Copy link
Member Author

evverx commented Apr 15, 2019

Judging by google/oss-fuzz#2312 (comment), libFuzzingEngine.a will be removed in the future so it seems we'll have to support -fsanitize=fuzzer sooner or later.

evverx added a commit to evverx/systemd that referenced this issue Apr 18, 2019
evverx added a commit to evverx/systemd that referenced this issue Apr 18, 2019
evverx added a commit to evverx/systemd that referenced this issue Apr 18, 2019
evverx added a commit to evverx/systemd that referenced this issue May 8, 2019
evverx added a commit to evverx/systemd that referenced this issue May 9, 2019
edevolder pushed a commit to edevolder/systemd that referenced this issue Jun 26, 2019
Yamakuzure pushed a commit to elogind/elogind that referenced this issue Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing build-system
Development

Successfully merging a pull request may close this issue.

1 participant