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

New Defects reported by Coverity Scan for HPCC-Platform on 29nd of January

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: eclrtl
    • Labels:
      None
    • Environment:
      OBT

      Description

      1 new defect(s) introduced to HPCC-Platform found with Coverity Scan.

      *** CID 1464448:  Null pointer dereferences  (REVERSE_INULL)
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/rtl/eclrtl/rtldynfield.cpp: 43 in getTranslationMode(const char *)()
      37     extern ECLRTL_API RecordTranslationMode getTranslationMode(const char *val)
      38     \{
      39         if (strieq(val, "alwaysDisk"))
      40             return RecordTranslationMode::AlwaysDisk;
      41         else if (strieq(val, "alwaysECL"))
      42             return RecordTranslationMode::AlwaysECL;
      >>>     CID 1464448:  Null pointer dereferences  (REVERSE_INULL)
      >>>     Null-checking "val" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
      43         else if (!val || strToBool(val) || strieq(val, "payload"))
      44             return RecordTranslationMode::Payload;
      45         else
      46             return RecordTranslationMode::None;
      47     }
      48
       

      To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRaNjvQL1JwbRRXECNADpFWbJmd1u5Ft08MVOUAWsoMXj3-2FOk3grCOW6BgQyMmqdP24-3D_V7u2yOhiGAr-2Biu54nFTzz4SZHmgCCBFa0WMVUxQKCX8-2Bf2-2FDSImu5wPJmtI25SSOtH-2Fp8Qk7OcvwEOh3NRKIq9v0IbF80MBZ7jTL7j-2Fw43uXGdEWNm-2BEs2TyArx0a7TOqpoqCGJAKFKCLK5Oup4g9vNUSbuDkgf-2FRAyRxUznniPuip-2FghfJnjieJ-2F5w95NT9T4KDv0uDbTMKbwYGwggndlUsChlkQ49MGTyzvhZOo-2BM-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: