Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-28748

Fix Coverity scan error in HIDL compiler

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.12.0
    • Tools
    • None

    Description

      Fix following scan error:

       

      New defect(s) Reported-by: Coverity Scan
      Showing 1 of 1 defect(s)

        • CID 1530248:  Uninitialized members  (UNINIT_CTOR)
          /home/centos/build/CE/platform/HPCC-Platform/tools/hidl/hidlcomp.h: 961 in EspMethodInfo::EspMethodInfo(ProcInfo *)()

      ________________________________________________________________________________________________________

          • CID 1530248:  Uninitialized members  (UNINIT_CTOR)
            /home/centos/build/CE/platform/HPCC-Platform/tools/hidl/hidlcomp.h: 961 in EspMethodInfo::EspMethodInfo(ProcInfo *)()
            955             response_ =(char *)malloc(strlen(name_)+9);
            956             strcpy(response_, name_);
            957             strcat(response_, "Response");
            958
            959             tags=NULL;
            960             next=NULL;
            >>>     CID 1530248:  Uninitialized members  (UNINIT_CTOR)
            >>>     Non-static class member "executionProfilingEnabled" is not initialized in this constructor nor in any functions that it calls.
            961         }
            962
            963         ~EspMethodInfo()
            964         {
            965             if (name_)
            966                 free(name_);

      Attachments

        Activity

          People

            kenrowland Kenneth A Rowland
            kenrowland Kenneth A Rowland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: