[RTEMS Project] #4472: ReportsText.cc: Not restoring ostream format error spotted by Coverity

RTEMS trac trac at rtems.org
Thu Jul 15 14:52:45 UTC 2021


#4472: ReportsText.cc: Not restoring ostream format error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  tool       |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1505940: Not restoring ostream format in PutSymbolSummaryLine().
 {{{
    5. format_changed: fixed changes the format state of report for
 category floatfield.
    6. format_changed: setprecision changes the format state of report for
 category precision.
 231    report << "============================================" <<
 std::endl
 232           << "Symbol                            : "
 233           << symbolName << std::endl
 234           << "Total Size in Bytes               : "
 235           << symbolInfo.stats.sizeInBytes << std::endl
 236           << "Total Size in Instructions        : "
 237           << symbolInfo.stats.sizeInInstructions << std::endl
 238           << "Total number Branches             : "
 239           << symbolInfo.stats.branchesNotExecuted +
 240              symbolInfo.stats.branchesExecuted
 241           << std::endl
 242           << "Total Always Taken                : "
 243           << symbolInfo.stats.branchesAlwaysTaken << std::endl
 244           << "Total Never Taken                 : "
 245           << symbolInfo.stats.branchesNeverTaken << std::endl
 246           << std::fixed << std::setprecision( 2 )
 247           << "Percentage Uncovered Instructions : "
 248           << uncoveredInstructions << std::endl
 249           << "Percentage Uncovered Bytes        : "
 250           << uncoveredBytes << std::endl;
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4472>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list