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

mongocrypt_kms_ctx_feed should return an error when given an empty bytes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.7.0, 1.7.0-alpha0
    • Affects Version/s: None
    • Component/s: None

      In PYTHON-3017 I discovered a bug in pymongo's CSFLE implementation where the kms_request I/O feeding loop could end up in an infinite loop. Libmongocrypt could prevent this type of bug by returning an error if mongocrypt_kms_ctx_feed is called with an empty mongocrypt_binary_t bytes.

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: