Don't pass nullptr to function parameters marked nonnull

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Hide

      Run jscore under ubsan

      Show
      Run jscore under ubsan
    • Platforms 15 (06/03/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some functions like memcpy and memcmp do not permit passing a nullptr for any of the pointer arguments, even if the length is null. However, some of our code does this. Under newer libc/ubsan combinations, these parameters are marked with the 'nonnull' attribute, and then ubsan complains when it sees nullptr actually passed, even if it works in practice.

              Assignee:
              Andrew Morrow (Inactive)
              Reporter:
              Andrew Morrow (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: