You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "guoxiang niu (JIRA)" <ji...@apache.org> on 2017/08/23 15:04:00 UTC

[jira] [Created] (ZOOKEEPER-2883) no null check for the pointer which returned by allocate_buffer() function

guoxiang niu created ZOOKEEPER-2883:
---------------------------------------

             Summary: no null check for the pointer which returned by allocate_buffer() function
                 Key: ZOOKEEPER-2883
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2883
             Project: ZooKeeper
          Issue Type: Bug
            Reporter: guoxiang niu


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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)