You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ken Giusti (Jira)" <ji...@apache.org> on 2019/11/05 19:49:00 UTC

[jira] [Created] (DISPATCH-1468) out-of-bounds array access in qd_entity_refresh_connector

Ken Giusti created DISPATCH-1468:
------------------------------------

             Summary: out-of-bounds array access in qd_entity_refresh_connector
                 Key: DISPATCH-1468
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1468
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.9.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti
             Fix For: 1.10.0


Found by AddressSanitizer:

 

/home/kgiusti/work/qpid-dispatch/src/connection_manager.c:852:5: error: ‘memset’ forming offset [1, 4] is out of the bounds [0, 0] of object ‘(\{anonymous})’ with type ‘unsi\
gned char[0]’ [-Werror=array-bounds]
 852 | memset(state_info, 0, sizeof(state_length));;
 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kgiusti/work/qpid-dispatch/src/connection_manager.c:766:12: note: ‘(\{anonymous})’ declared here
 766 | qd_error_t qd_entity_refresh_connector(qd_entity_t* entity, void *impl)
 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org