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

New Defects reported by Coverity Scan for HPCC-Platform on 6th of November

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: eclcc, unittests
    • Labels:
      None

      Description

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

      ** CID 1461125:  Error handling issues  (UNCAUGHT_EXCEPT)
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/testing/unittests/dalitests.cpp: 1140 in CDaliSDSTests::testSDSSubs2()::CSubscriberContainer::~CSubscriberContainer()()
      
      
      ________________________________________________________________________________________________________
      *** CID 1461125:  Error handling issues  (UNCAUGHT_EXCEPT)
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/testing/unittests/dalitests.cpp: 1140 in CDaliSDSTests::testSDSSubs2()::CSubscriberContainer::~CSubscriberContainer()()
      1134                 CSubscriberContainer(StringBuffer &result, const char *xpath, bool sub)
      1135                 \{
      1136                     subscriber.setown(new CSubscriber(result, xpath, sub));
      1137                     id = querySDS().subscribe(xpath, *subscriber, sub, !sub);
      1138                     PROGLOG("Subscribed to %s", xpath);
      1139                 }
      >>>     CID 1461125:  Error handling issues  (UNCAUGHT_EXCEPT)
      >>>     An exception of type "IException *" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
      1140                 ~CSubscriberContainer()
      1141                 \{
      1142                     querySDS().unsubscribe(id);
      1143                 }
      1144             };
      1145             Owned<IRemoteConnection> conn = querySDS().connect("/", myProcessSession(), RTM_LOCK_WRITE, INFINITE);
      
      ** CID 1461126:  Control flow issues  (MISSING_BREAK)
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/ecl/hql/hqldesc.cpp: 157 in expandType(IPropertyTree *, ITypeInfo *)()
      
      
      ________________________________________________________________________________________________________
      *** CID 1461126:  Control flow issues  (MISSING_BREAK)
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/ecl/hql/hqldesc.cpp: 157 in expandType(IPropertyTree *, ITypeInfo *)()
      151                 ForEachChild(i, params)
      152                 \{
      153                     IPropertyTree * ptype = ptree->addPropTree("Type");
      154                     expandType(ptype, params->queryChild(i)->queryType());
      155                 }
      156             }
      >>>     CID 1461126:  Control flow issues  (MISSING_BREAK)
      >>>     The above case falls through to this one.
      157             case type_set:
      158             case type_row:
      159             case type_pattern:
      160             case type_rule:
      161             case type_token:
      162             case type_transform:
      
      

      To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRaNjvQL1JwbRRXECNADpFWbJmd1u5Ft08MVOUAWsoMXj3-2FOk3grCOW6BgQyMmqdP24-3D_V7u2yOhiGAr-2Biu54nFTzz4SZHmgCCBFa0WMVUxQKCX-2FpF2YJ8j8jCHgXrvduMo2Z14TxuOwFzQHnydxr71SsGSU6W58s1tTdcfURar4MrdawlzYe6jrVgua7gv-2FlI1bKXU1f5lC0i4KtRbl14vPhXVqJW6-2BhSJ57jPN0WA2PhI7cnpmqbHuMoH6uW6SBsXv-2FCNyLCZU2BTbyYIFMQPVW9LPBu-2B-2Bk6mdRqKKKp8TKTEI-3D

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              attilavamos Attila Vamos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: