[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: SERVER-52818 Fix SBE's implementation of strings to handle null bytes correctly
Branch: master
https://github.com/mongodb/mongo/commit/bd173350b5da7cea73d7d23e4250ee7ded44a86e

Generated at Thu Feb 08 05:29:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.