mongocrypt_kms_ctx_feed should return an error when given an empty bytes

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 1.7.0, 1.7.0-alpha0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: