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

Probably benign misuse of StringBuffer when creating IPT nodes as part of a SDS connect with RTM_CREATE*

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.0
    • Component/s: Dali
    • Labels:
      None

      Description

      Code involved in creating a connection with RTM_CREATE* that causes intermediate nodes to be created, got a char pointer from a string owned by a StringBuffer, cleared the string buffer, then appended the pointer back in.

      As StringBuffer::clear doesn't free the memory, the bug was hidden, however valgrind spotted the problem, by noticing the destination and source on the append overlapped, which is undefined behaviour.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: