Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
Fully Compatible
-
ALL
-
Query 2020-12-14, Query 2020-12-28
Description
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.