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

ValidateError should use StringData instead of std::string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.9
    • None
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-03-11, Storage NYC 2019-03-25
    • 66
    • 2

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: