[MONGOCRYPT-582] Fix Coverity reported leaks on errors Created: 27/Jul/23  Updated: 28/Oct/23  Resolved: 28/Jul/23

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.2

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

Binding Changes: Not Needed

 Description   

Fix the following issues reported in the Coverity libmongocrypt project:

  • CID 134935
  • CID 134934
  • CID 135605

See https://wiki.corp.mongodb.com/display/HGTC/Coverity for steps to log in to Coverity.



 Comments   
Comment by Githook User [ 28/Jul/23 ]

Author:

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

Message: MONGOCRYPT-582 fix leaks on errors (#676)

  • fix possible leak of `token`

Intended to resolve coverity issue with CID 135605

  • fix possible leak of `in` and `iv`

Intended to resolve coverity issues with CID 134935 and CID 134934
Branch: r1.8
https://github.com/mongodb/libmongocrypt/commit/71dd084ac173fba886e9ab76620be7bc4b4fe3e4

Comment by Githook User [ 28/Jul/23 ]

Author:

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

Message: MONGOCRYPT-582 fix leaks on errors (#676)

  • fix possible leak of `token`

Intended to resolve coverity issue with CID 135605

  • fix possible leak of `in` and `iv`

Intended to resolve coverity issues with CID 134935 and CID 134934
Branch: master
https://github.com/mongodb/libmongocrypt/commit/e065410fb4946e01a3b9bb46e5b9e25e08e81e0e

Comment by Cloud GitHub Webhooks [ 28/Jul/23 ]

kevinAlbs merged a pull request (MONGOCRYPT-582 fix leaks on errors) into the following branch:
master: e065410fb4946e01a3b9bb46e5b9e25e08e81e0e

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