Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2883

no null check for the pointer which returned by allocate_buffer() function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • c client
    • None

    Description

      1、in check_events() function, no null check for the pointer returned by allocate_buffer, the pointer will be passed to recv_buffer(), then the curr_offset member of pointer will be accessed directly.

      2、in queue_session_event(), curr_offset also be accessed directly without null check.

      Attachments

        Activity

          People

            guoxiang guoxiang niu
            guoxiang guoxiang niu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: