[SERVER-68140] Expose object_check.h to query_analysis.cpp Created: 19/Jul/22 Updated: 29/Oct/23 Resolved: 02/Aug/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Jackson | Assignee: | Spencer Jackson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Sprint: | Security 2022-07-25, Security 2022-08-08 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 5 | ||||||||||||
| Description |
|
fle_crypto.h exposes an inline function called parseFromCDR which consumes a Validated<BSONObj> out of a ConstDataRange. The Validated<BSONObj> type requires a template specialization which is provided from rpc/object_check.h. In order to make this invocation work, either every caller of parseFromCDR must have access to the symbols for the template specialization. These symbols are provided by including object_check.h into fle_crypto.cpp.However, when using fvisibility-inlines-hidden, the symbols are hidden from the shared object's export table. |
| Comments |
| Comment by Githook User [ 20/Jul/22 ] | ||||||||
|
Author: {'name': 'Spencer Jackson', 'email': 'spencer.jackson@mongodb.com', 'username': 'spencerjackson'}Message: | ||||||||
| Comment by Spencer Jackson [ 19/Jul/22 ] | ||||||||
|
Building with fvisibility-inlines-hidden results in this message:
|