-
Notifications
You must be signed in to change notification settings - Fork 362
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
show gcc / clang sanitizer findings as issues #2084
Comments
Hi @Kinokin, thanks for the idea. Think title of the feature request should be
Is this the case for AddressSanitizer? Regards, |
Personally I need the address sanitizer the the undefined behavior sanitizer outputs. For undefined behaviour sanitizer there are messages like: So one can scan for patterns to create a rule id For AdressSanitizer This might be easier to scan. So I think the answer to your question is yes |
Hi @Kinokin, supporting different tools with one sensor is not possible, must be one sensor for one tool. Regards, |
Hi @Kinokin, there is the list of checks https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#available-checks but where is the list of resulting rule/issue IDs? In this sample are also no line numbers?
Regards, |
For address sanitizer the best list I found seems to be in For the examples I used <lineno>:<column> but the plain symbols seem to be dropped on display |
gcc and clang can instrument the created binary with additional checks like
An example output from clang looks like
==9442== ERROR: AddressSanitizer heap-use-after-free on address 0x7f7ddab8c084 at pc 0x403c8c bp 0x7fff87fb82d0 sp 0x7fff87fb82c8
READ of size 4 at 0x7f7ddab8c084 thread T0
#0 0x403c8c in main example_UseAfterFree.cc:4
#1 0x7f7ddabcac4d in __libc_start_main ??:0
(see https://clang.llvm.org/docs/AddressSanitizer.html)
The feature request would be to define a file format for sonar-cxx to upload the sanitizer issues detected on tests
The text was updated successfully, but these errors were encountered: