[SERVER-52818] Fix SBE's implementation of strings to handle null bytes correctly Created: 12/Nov/20 Updated: 29/Oct/23 Resolved: 14/Dec/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Drew Paroski | Assignee: | Drew Paroski |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Query 2020-12-14, Query 2020-12-28 |
| Participants: |
| 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. |
| Comments |
| Comment by Githook User [ 14/Dec/20 ] |
|
Author: {'name': 'Drew Paroski', 'email': 'drew.paroski@mongodb.com', 'username': 'paroski'}Message: |