Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8674

CLI DataInput object leaks internal buffer when allocating ctor is called

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • native client
    • None

    Description

      The CLI DataInput object has two ctors, one of which copies the passed-in buffer parameter via new[] and one of which doesn't.  In the event that the former is called, the buffer is leaked when the object is deleted/Disposed.  Here's the current code for CLI `DataInput::~DataInput`:

      ```

      ~DataInput( ) { Cleanup(); }

      ```

      And the code for `DataInput::Cleanup`:

      ```

            void DataInput::Cleanup()

           

      {         //TODO:         //GF_SAFE_DELETE_ARRAY(m_buffer);       }

      ```

      So apparently this bug has been known for some time (?!?), but has never been fixed.

       

      Attachments

        Activity

          People

            bbender Blake Bender
            bbender Blake Bender
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: