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

Fix SBE's implementation of strings to handle null bytes correctly

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • ALL
    • Query 2020-12-14, Query 2020-12-28

      While Melodee was implementing SBE support for $split, she noticed a bug involving strings containing null bytes. Upon further investigation, I discovered that the current implementation of StringSmall and StringBig assume that null bytes will never occur within strings, which is a problem.

      The goals of this task are: (1) to fix the implementation of StringBig to support strings containing null bytes; and (2) to either fix the implementation of StringSmall to support strings contain null bytes, or to change SBE so that we always use StringBig instead of StringSmall when a string contains null bytes. 

            Assignee:
            andrew.paroski@mongodb.com Drew Paroski
            Reporter:
            andrew.paroski@mongodb.com Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: