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

Coverity analysis defect 121189: Not restoring ostream format

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.3.0
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2021-12-27, Security 2022-01-10

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: