Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-212

`kms_request_get_canonical` can return NULL and lead to segfault

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.0.1
    • None
    • kms_message
    • None

    Description

      This method can possibly return NULL (in our unit tests because we stub out the implementation with one that returns false), but the library does not check for that value before attempting to operate on the string a few lines down, leading to a segfault

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: