[CDRIVER-3227] PCCERT_CONTEXT may go out of scope in optimized build Created: 10/Jul/19  Updated: 28/Oct/23  Resolved: 10/Jul/19

Status: Closed
Project: C Driver
Component/s: libmongoc, tls
Affects Version/s: None
Fix Version/s: 1.15.0

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

Optimized build on VC14 x64 using Secure Channel


Issue Links:
Related
related to CDRIVER-3228 Investigate whether allocated PCCERT_... Backlog

 Description   

From mongodb/mongo-c-driver#571:

PCCERT_CONTEXT cert/paCred pointer goes out of `if` scope in optimized build, leading to crash (this seem to work fine in unoptimized/debug build). VC14 x64



 Comments   
Comment by Githook User [ 10/Jul/19 ]

Author:

{'name': 'pasniak', 'email': '19778666+pasniak@users.noreply.github.com', 'username': 'pasniak'}

Message: CDRIVER-3227 fix crash related to pem_file in optimized build

PCCERT_CONTEXT cert/paCred pointer goes out of `if` scope in optimized build, leading to crash (this seem to work fine in unoptimized/debug build). VC14 x64
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f34ff4aa6bc90c2f433be677b2b2f5fc74ff0ca6

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