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

Coverity analysis defect 122289: Not restoring ostream format

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2022-06-13

    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/fle/lib/mongo_crypt_test.cpp:284: STREAM_FORMAT_STATE 122289 "hex" changes the format state of "std::cerr" for category basefield.
      /src/mongo/db/modules/enterprise/src/fle/lib/mongo_crypt_test.cpp:288: STREAM_FORMAT_STATE 122289 Changing format state of stream "std::cerr" for category basefield without later restoring it.

      Attachments

        Activity

          People

            sergey.galtsev@mongodb.com Sergey Galtsev (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: