StringData::compare can illegally pass nullptr to memcmp

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Platform B (10/30/15)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      It is undefined behavior to pass nullptr for either pointer argument to memcmp, however, StringData::compare does not guard against this. A default constructed StringData, for instance, has a nullptr _data member.

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

                Created:
                Updated:
                Resolved: