Fix possible segmentation fault in mc_FLE2IndexedEncryptedValueV2_destroy

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.15.0, 1.14.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The metadata pointer is being dereferenced in mc_FLE2IndexedEncryptedValueV2_destroy() without first checking if it is NULL.  A segmentation fault can occur here if the mc_FLE2IndexedEncryptedValueV2_t edge_count member were set to a value greater than zero, but the metadata array was never allocated due to an error during parsing, for example.

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: