Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-24145

Don't pass nullptr to function parameters marked nonnull

    • Fully Compatible
    • ALL
    • Hide

      Run jscore under ubsan

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

      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@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: