[SERVER-22908] Coverity analysis defect 86187: Improper use of negative value Created: 01/Mar/16  Updated: 16/Mar/16  Resolved: 08/Mar/16

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

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Spencer Jackson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 11 (03/11/16)
Participants:

 Description   

Negative value can be returned from function is not being checked before being used improperly

Defect 86187 (STATIC_C)
Checker NEGATIVE_RETURNS (subcategory none)
File: /src/mongo/db/modules/enterprise/src/ldap/name_mapping/rewrite_rule.cpp
Function mongo::RewriteRule::_extractMatches(const pcrecpp::RE &, mongo::StringData) const
/src/mongo/db/modules/enterprise/src/ldap/name_mapping/rewrite_rule.cpp, line: 20
Assigning: unsigned variable "numCaptureGroups" = "NumberOfCapturingGroups".

        size_t numCaptureGroups = match.NumberOfCapturingGroups();



 Comments   
Comment by Githook User [ 08/Mar/16 ]

Author:

{u'username': u'spencerjackson', u'name': u'Spencer Jackson', u'email': u'spencer.jackson@mongodb.com'}

Message: SERVER-22908: Check for malformed regex
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/d9a486c3ad7ad974745704ac3407863b97339919

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