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

ValidateError should use StringData instead of std::string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11, Storage NYC 2019-03-25
    • 66
    • 2

      The ValidateError test in collection_test.cpp creates a std::string "\0\0\0\0\0". BF-12300 is likely caused by the assumption that this string is length 5 but strlen() returning 0. Change this to use StringData instead.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: