Coverity analysis defect 121627: Not restoring ostream format

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • ALL
    • 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_csfle_test.cpp:284: STREAM_FORMAT_STATE 121627 "hex" changes the format state of "std::cerr" for category basefield.
      /src/mongo/db/modules/enterprise/src/fle/lib/mongo_csfle_test.cpp:287: STREAM_FORMAT_STATE 121627 Changing format state of stream "std::cerr" for category basefield without later restoring it.

            Assignee:
            [DO NOT USE] Backlog - Security Team
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: