Coverity analysis defect 122289: Not restoring ostream format

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Security 2022-06-13
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Sergey Galtsev (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: