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

XMLWordPrintableJSON

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

      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:
            Drew Paroski
            Reporter:
            Drew Paroski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: