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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 8

      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.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: