Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334239

Introduce macro for ubsan method/function exclusions

XMLWordPrintable

    • b03
    • generic
    • generic

        A number of functions/methods have to be excluded from ubsan detection (e.g. because they do things that ubsan warns about, however it is still valid what is done there).
        We can simplify this by introducing a macro (similar to asan-related ATTRIBUTE_NO_ASAN, see address.hpp).
        Currently something like this is used :
        #if defined(__clang__) || defined(__GNUC__)
        __attribute__((no_sanitize("undefined")))
        #endif

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: