[CDRIVER-3754] Leak of empty string in _obtain_creds_from_ecs Created: 16/Jul/20  Updated: 28/Oct/23  Resolved: 17/Jul/20

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.17.0-beta
Fix Version/s: 1.17.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Introduced in CDRIVER-3423 in this commit:
https://github.com/mongodb/mongo-c-driver/commit/535e9091f399fbea2cacab490b93fbed48c328be#diff-3d3e42655bbb89f4b06256d8b8480e3eR369

If the environment variable AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is set, but is the empty string, this function leaks that empty string.



 Comments   
Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3754 add free of empty string

Coverity CID: 1158900
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/97f640e28561bcd29aa8bf24881a10dbba8be353

Comment by Githook User [ 17/Jul/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3754 add free of empty string

Coverity CID: 1158900
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e3b45890f940383f97da84d713c08d3b52436f19

Comment by Kevin Albertson [ 16/Jul/20 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/663

Generated at Wed Feb 07 21:18:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.