Support fast16labels in dfsan_has_label, and print an error for all
other API functions.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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 | ||
---|---|---|
267 | I would just err in fast16labels mode w/i checking for last_lavel > 15. | |
322 | same | |
343 | same | |
369 | same |
Comment Actions
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.
Comment Actions
Also, we don't have to err in these functions at all, it's fine to just return silently.
I would just err in fast16labels mode w/i checking for last_lavel > 15.
Users should not call this function at all in fast16labels mode, IMO.