-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Why is nonnull-attribute disabled on OSS-Fuzz #2518
Comments
Generally, I'd say it's not obvious to me why some of the checks are disabled. For example, I found #232 (comment) where |
In a sense this issue is a duplicate of #232, which has been inactive for more than 2 years, so, in principle, it can probably be closed and the discussion can be moved there if it's more convenient. |
Probably |
I'm not sure it's new. Judging by systemd/systemd#9738, It's been crashing our unit tests since the summer of 2018 :-) |
At first glance, the issue reported by UBSan with |
FWIW It turns out that the fuzz targets in the systemd project can withstand all default UBSan checks except for "pointer-overflow","object-size" and "float-cast-overflow". Not that these three checks produce false positives though. I'll turn them on later when the fuzz targets are ready. |
Since I no longer use OSS-Fuzz as a primary source of bugs discovered by UBSan and I turned on the checks I need elsewhere, I think this issue can be closed. #232 refers to this issue so when someone gets round to it, it should be relatively easy to find it. |
When the fuzz targets from the systemd project were ported to Fuzzit,
-fsanitize=undefined
was initially passed to the compiler, which caused a few crashes there: systemd/systemd#12771 (comment). To temporarily silence UBsan, in systemd/systemd#12761 I turned on a subset of https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks I borrowed fromoss-fuzz/infra/base-images/base-builder/Dockerfile
Lines 33 to 34 in a3c935f
I'm going to turn
nonnull-attribute
on on Fuzzit in systemd/systemd#12810, but I'm wondering why it's not used on ClusterFuzz. Is it not considered a bug or does it produce a lot of false positives?The text was updated successfully, but these errors were encountered: