Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#4432 closed defect (fixed)

GcovFunctionData.cc: Uninitialized pointer field error spotted by coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords: Coverity
Cc: Blocked By:
Blocking:

Description

CID 1399640: Uninitialized pointer field in GcovFunctionData?().

 20  GcovFunctionData::GcovFunctionData()
 21  {
 22    numberOfArcs = 0;
 23    numberOfBlocks = 0;
 24    coverageMap = NULL;
   2. uninit_member: Non-static class member id is not initialized in this constructor nor in any functions that it calls.
   4. uninit_member: Non-static class member checksum is not initialized in this constructor nor in any functions that it calls.
   6. uninit_member: Non-static class member firstLineNumber is not initialized in this constructor nor in any functions that it calls.
   CID 1399640 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)8. uninit_member: Non-static class member symbolInfo is not initialized in this constructor nor in any functions that it calls.
 25  }

Change History (2)

comment:1 Changed on 05/19/21 at 16:09:58 by Ryan Long

Summary: DesiredSymbols.h: Uninitialized pointer field error spotted by coverityGcovFunctionData.cc: Uninitialized pointer field error spotted by coverity

comment:2 Changed on 09/27/21 at 22:18:28 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In [changeset:"247d39ac7156d730a9f1b35a319f60786568e3b4/rtems-tools" 247d39a/rtems-tools]:

GcovFunctionData?.cc: Initialize member variables

CID 1399640: Uninitialized pointer field

Closes #4432

Note: See TracTickets for help on using tickets.