[SERVER-18716] Coverity analysis defect 72715: Unchecked return value Created: 28/May/15  Updated: 27/Oct/15  Resolved: 15/Oct/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.0-rc1

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QuInt B (11/02/15)
Participants:

 Description   

Value returned from a function is not checked for errors before being used

Defect 72715 (STATIC_C)
Checker CHECKED_RETURN (subcategory none)
File: /src/mongo/util/tcmalloc_server_status_section.cpp
Function mongo::<unnamed>::_mongoInitializerFunction_TCMallocThreadIdleListener(mongo::InitializerContext *)
/src/mongo/util/tcmalloc_server_status_section.cpp, line: 67
Calling "GetNumericProperty" without checking return value (as is done elsewhere 2 out of 4 times).

            MallocExtension::instance()->GetNumericProperty("tcmalloc.max_total_thread_cache_bytes", 



 Comments   
Comment by Githook User [ 15/Oct/15 ]

Author:

{u'username': u'martinbligh', u'name': u'Martin Bligh', u'email': u'mbligh@mongodb.com'}

Message: SERVER-18716: check return value of GetNumericProperty
Branch: master
https://github.com/mongodb/mongo/commit/12b91fc9249b23691b826dc8e7c1fc3cbfe215b9

Generated at Thu Feb 08 03:48:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.