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

Coverity analysis defect 121189: Not restoring ostream format

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • Security 2021-12-27, Security 2022-01-10

      Not restoring ostream format

      The next output operation may not expect the stream format state being altered, resulting in incorrectly formatted output. Not restoring the stream format state of an ostream
      /src/mongo/db/modules/enterprise/src/kmip/kmip_request_test.cpp:66: STREAM_FORMAT_STATE 121189 "hex" changes the format state of "std::cout" for category basefield.
      /src/mongo/db/modules/enterprise/src/kmip/kmip_request_test.cpp:72: STREAM_FORMAT_STATE 121189 Changing format state of stream "std::cout" for category basefield without later restoring it.

            Assignee:
            spencer.jackson@mongodb.com Spencer Jackson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: