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

Constructing a Value with an invalid string can trigger a verify() on debug builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Linked BF Score:
      8

      Description

      As part of the construction of Value from a string, we first create an RCString then set the generic ptr in the value storage. However if the construction of the RCString throws because the string is too large, then unrolling the ValueStorage will trip this verify since we didn't get to the point in the constructor where the refCounter bit is set.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: