Uploaded image for project: 'openflowjava'
  1. openflowjava
  2. OPNFLWJAVA-28

Potential buffer leak

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • General
    • None
    • Operating System: Mac OS
      Platform: Macintosh

    • 1324

    Description

      OFDecoder.decode(), lines 53-58

      if (dataObject == null)

      { LOGGER.warn("Translated POJO is null"); return; }

      msg.getMessageBuffer().release();
      out.add(dataObject);
      }

      If the decoded object happens to be null, we do not release the original message buffer. I am not sure if it’s used somewhere else (unlikely, that would be bad design) - if it is not, we have a potential buffer leak.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jmedved@cisco.com Jan Medved
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: