[SERVER-50338] Coverity analysis defect 116179: Improper use of negative value Created: 17/Aug/20  Updated: 29/Oct/23  Resolved: 25/Sep/20

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Geert Bosch
Resolution: Fixed Votes: 0
Labels: coverity
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-10-05
Participants:

 Description   

Improper use of negative value

The negative value may be unexpected by later operations, causing incorrect computations. Negative value can be returned from function is not being checked before being used improperly



 Comments   
Comment by Githook User [ 25/Sep/20 ]

Author:

{'name': 'Geert Bosch', 'email': 'geert@mongodb.com', 'username': 'GeertBosch'}

Message: SERVER-50338 Avoid using negative subscript in BSONValidate
Branch: master
https://github.com/mongodb/mongo/commit/7f558f65ed8e8468cb57f49fe033868cb97b23f5

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