Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68140

Expose object_check.h to query_analysis.cpp

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Security 2022-07-25, Security 2022-08-08
    • 5

      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.

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: