[SERVER-50166] Coverity analysis defect 115934: Out-of-bounds access Created: 06/Aug/20  Updated: 06/Aug/20  Resolved: 06/Aug/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Brooke Miller
Resolution: Won't Fix Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Out-of-bounds access

Memory not owned by this buffer will be accessed, causing memory corruption or incorrect computations. Access of memory past the end of a memory buffer
/src/mongo/db/exec/sbe/values/value.h:496: ARRAY_VS_SINGLETON 115934 Taking address with "smallString" yields a singleton pointer.
/src/mongo/db/exec/sbe/values/value.h:496: ARRAY_VS_SINGLETON 115934 Assigning: "stringAlias" = "mongo::sbe::value::getSmallStringView(smallString)".
/src/mongo/db/exec/sbe/values/value.h:498: ARRAY_VS_SINGLETON 115934 Using "stringAlias" as an array. This might corrupt or misinterpret adjacent memory locations.



 Comments   
Comment by Brooke Miller [ 06/Aug/20 ]

I didn't think this would immediately get created when I was testing what the 'Export' button did. (Was exploring how tickets were being created from Coverity in the first place since there's no documentation on it.) I'm closing this as Won't Fix, but please re-open and assign if you need to investigate this issue.

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