Support fast16labels in dfsan_has_label, and print an error for all
other API functions.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think this is an overkill.
fast16labels mode should be even simpler:
there are always 16 primary labels, they don't have any descriptions or properties controlled by dfsan.
compiler-rt/lib/dfsan/dfsan.cpp | ||
---|---|---|
258 | I would just err in fast16labels mode w/i checking for last_lavel > 15. | |
321 | same | |
349 | same | |
378 | same |
Seems reasonable, but note it will require effort for existing API users to switch. For example, all the existing protobuf labeling API, etc. will need to be adapted.
Also, we don't have to err in these functions at all, it's fine to just return silently.
clang-tidy: warning: invalid case style for variable 'last_label' [readability-identifier-naming]
not useful