[SERVER-40045] ValidateError should use StringData instead of std::string Created: 08/Mar/19  Updated: 29/Oct/23  Resolved: 13/Mar/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2019-03-11, Storage NYC 2019-03-25
Participants:
Linked BF Score: 66
Story Points: 2

 Description   

The ValidateError test in collection_test.cpp creates a std::string "\0\0\0\0\0". BF-12300 is likely caused by the assumption that this string is length 5 but strlen() returning 0. Change this to use StringData instead.



 Comments   
Comment by Githook User [ 13/Mar/19 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: SERVER-40045 Fix ValidateError test to use StringData instead of std::string
Branch: master
https://github.com/mongodb/mongo/commit/537ba4469fb872027a59b26344de28e715684679

Generated at Thu Feb 08 04:53:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.