[SERVER-64161] Coverity analysis defect 121627: Not restoring ostream format Created: 03/Mar/22  Updated: 06/Dec/22  Resolved: 01/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Coverity Collector User Assignee: Backlog - Security Team
Resolution: Duplicate Votes: 0
Labels: coverity, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-66904 Coverity analysis defect 122289: Not ... Closed
Assigned Teams:
Server Security
Operating System: ALL
Participants:

 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_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.


Generated at Thu Feb 08 05:59:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.